summaryrefslogtreecommitdiff
path: root/iPhonePrivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'iPhonePrivate.h')
-rw-r--r--iPhonePrivate.h11
1 files changed, 11 insertions, 0 deletions
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;