X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/2634b249a36b79a5c11dcdda3edc7161e9f92c2b..9bb3b29517f87de33c5e2e47b2a75da4417284a3:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 6dc893b7..149fdc86 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -90,6 +90,9 @@ typedef enum { - (void) setText:(NSString *)text; @end +@interface UITransitionView : UIView +@end + @interface UIWebDocumentView : UIView - (CGRect) documentBounds; - (void) enableReachability; @@ -99,8 +102,6 @@ typedef enum { - (void) setAllowsMessaging:(BOOL)allows; - (void) setAutoresizes:(BOOL)autoresizes; - (void) setContentsPosition:(NSInteger)position; -- (void) setDataDetectorTypes:(NSUInteger)types; -- (void) setDetectsPhoneNumbers:(BOOL)detects; - (void) setDrawsBackground:(BOOL)draws; - (void) _setDocumentType:(NSInteger)type; - (void) setDrawsGrid:(BOOL)draws; @@ -118,6 +119,11 @@ typedef enum { - (void) useSelectionAssistantWithMode:(NSInteger)mode; - (WebView *) webView; @end + +@interface UIWebViewWebViewDelegate : NSObject { + @public UIWebView *uiWebView; +} +@end // }}} // @interface *Button : * {{{ @interface UINavigationButton : UIButton @@ -189,9 +195,6 @@ typedef enum { - (void) applicationWillResignActive:(UIApplication *)application; - (void) applicationWillSuspend; - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended; -- (void) removeApplicationBadge; -- (void) setApplicationBadge:(NSString *)badge; -- (void) setApplicationBadgeString:(NSString *)badge; - (void) setStatusBarShowsProgress:(BOOL)shows; - (void) _setSuspended:(BOOL)suspended; - (void) terminateWithSuccess; @@ -201,6 +204,10 @@ typedef enum { - (UIView *) view; @end +@interface UIColor (Apple) ++ (UIColor *) pinStripeColor; +@end + @interface UIControl (Apple) - (void) addTarget:(id)target action:(SEL)action forEvents:(NSInteger)events; @end @@ -228,12 +235,17 @@ typedef enum { - (UITextField *) searchField; @end +@interface UITabBarController (Apple) +- (UITransitionView *) _transitionView; +@end + @interface UITabBarItem (Apple) - (void) setAnimatedBadge:(BOOL)animated; @end @interface UITableViewCell (Apple) - (float) selectionPercent; +- (void) _updateHighlightColorsForView:(id)view highlighted:(BOOL)highlighted; @end @interface UITextField (Apple) @@ -274,6 +286,7 @@ typedef enum { - (UIWebDocumentView *) _documentView; - (UIScrollView *) _scrollView; - (UIScroller *) _scroller; +- (void) _updateViewSettings; //- (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; @@ -294,6 +307,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, @@ -303,7 +317,6 @@ typedef enum { } UIModalPresentationStyle; #define kSCNetworkReachabilityFlagsConnectionOnTraffic kSCNetworkReachabilityFlagsConnectionAutomatic -#define kSCNetworkReachabilityFlagsConnectionOnDemand (1 << 5) #define UIBarStyleBlack UIBarStyleBlackOpaque @@ -318,8 +331,25 @@ typedef enum { - (void) setModalPresentationStyle:(UIModalPresentationStyle)style; @end +@interface UIScrollView (iOS_3_0) +@property(assign, nonatomic) float decelerationRate; +@end + +@interface UIWebView (iOS_3_0) +@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) + +#endif +// }}} // extern *; {{{ extern CFStringRef const kGSDisplayIdentifiersCapability; @@ -327,6 +357,8 @@ 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); // }}}