X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/0e371502fd57d5754c54d36d7ec29e8ef5bc6ae1..ab2cfc1e0f4678f398698b0d9db90c69e1e71f3c:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 9778f9da..47463355 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -237,6 +237,8 @@ typedef enum { @interface UITabBarController (Apple) - (UITransitionView *) _transitionView; +- (void) concealTabBarSelection; +- (void) revealTabBarSelection; @end @interface UITabBarItem (Apple) @@ -287,6 +289,7 @@ typedef enum { - (UIScrollView *) _scrollView; - (UIScroller *) _scroller; - (void) _updateViewSettings; +- (void) webView:(WebView *)view addMessageToConsole:(NSDictionary *)message; //- (WebView *) webView:(WebView *)view createWebViewWithRequest:(NSURLRequest *)request; - (void) webView:(WebView *)view decidePolicyForNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id)listener; - (void) webView:(WebView *)view decidePolicyForNewWindowAction:(NSDictionary *)action request:(NSURLRequest *)request newFrameName:(NSString *)name decisionListener:(id)listener; @@ -307,6 +310,7 @@ typedef enum { // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{ #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER #define AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER +// XXX: this is a random jumble of garbage typedef enum { UIModalPresentationFullScreen, @@ -316,7 +320,6 @@ typedef enum { } UIModalPresentationStyle; #define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic -#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5) #define UIBarStyleBlack UIBarStyleBlackOpaque @@ -331,18 +334,34 @@ typedef enum { - (void) setModalPresentationStyle:(UIModalPresentationStyle)style; @end +@interface UIApplication (iOS_3_0) +@property(nonatomic) BOOL applicationSupportsShakeToEdit; +@end + @interface UIScrollView (iOS_3_0) -@property(assign, nonatomic) float decelerationRate; +@property(assign,nonatomic) float decelerationRate; @end @interface UIWebView (iOS_3_0) -@property(assign, nonatomic) NSUInteger dataDetectorTypes; +@property(assign,nonatomic) NSUInteger dataDetectorTypes; @end extern float const UIScrollViewDecelerationRateNormal; #endif//AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER // }}} +// #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 {{{ +#if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 + +#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5) +#define kCFCoreFoundationVersionNumber_iPhoneOS_3_0 478.47 + +#endif +// }}} + +@interface UIScreen (iOS_4_0) +@property(nonatomic,readonly) CGFloat scale; +@end // extern *; {{{ extern CFStringRef const kGSDisplayIdentifiersCapability; @@ -350,6 +369,7 @@ extern float const UIWebViewGrowsAndShrinksToFitHeight; extern float const UIWebViewScalesToFitScale; // }}} // extern "C" *(); {{{ +extern "C" void *reboot2(uint64_t flags); extern "C" mach_port_t SBSSpringBoardServerPort(); extern "C" UIImage *_UIImageWithName(NSString *name); extern "C" void UISetColor(CGColorRef color);