From 81628115a7ac1ddd54abee383786a8bf9a0d6585 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 24 Dec 2013 01:46:34 -0800 Subject: Fix iOS 7 autorotate (need setRootViewController). --- iPhonePrivate.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'iPhonePrivate.h') diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 6f4e706..37e73d6 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -418,6 +418,17 @@ extern float const UIScrollViewDecelerationRateNormal; - (WebFrame *) contentFrame; @end +typedef enum { + UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait), + UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft), + UIInterfaceOrientationMaskLandscapeRight = (1 << UIInterfaceOrientationLandscapeRight), + UIInterfaceOrientationMaskPortraitUpsideDown = (1 << UIInterfaceOrientationPortraitUpsideDown), + UIInterfaceOrientationMaskLandscape = (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight), + UIInterfaceOrientationMaskAll = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | + UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown), + UIInterfaceOrientationMaskAllButUpsideDown = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight), +} UIInterfaceOrientationMask; + // extern *; {{{ extern CFStringRef const kGSDisplayIdentifiersCapability; extern float const UIWebViewGrowsAndShrinksToFitHeight; -- cgit v1.2.3