X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/bea22a677eadd2f5c34fda37b5fa9656dd2dfa36..20f46876cd40f761341ee358ee52d90adcf0db88:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 96679a59..d085dd96 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -3,6 +3,12 @@ // #include <*> {{{ #include +#include +// }}} +// #import <*> {{{ +#import +#import +#import // }}} // typedef enum {*} *; {{{ typedef enum { @@ -23,14 +29,9 @@ typedef enum { UINavigationButtonStyleDestructive } UINavigationButtonStyle; -typedef enum { - UIProgressIndicatorStyleLargeWhite, - UIProgressIndicatorStyleMediumWhite, - UIProgressIndicatorStyleMediumBrown, - UIProgressIndicatorStyleSmallWhite, - UIProgressIndicatorStyleSmallBlack, - UIProgressIndicatorStyleTinyWhite, -} UIProgressIndicatorStyle; +static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteSmall(static_cast(3)); +static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleGraySmall(static_cast(4)); +static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny(static_cast(5)); // }}} // #define * * {{{ #define UIDataDetectorTypeAutomatic 0x80000000 @@ -61,16 +62,9 @@ typedef enum { @end @interface UIProgressHUD : UIView -- (id) initWithWindow:(UIWindow *)window; +- (void) hide; - (void) setText:(NSString *)text; -- (void) show:(BOOL)show; -@end - -@interface UIProgressIndicator : UIView -+ (CGSize) defaultSizeForStyle:(NSUInteger)style; -- (NSUInteger) activityIndicatorViewStyle; -- (void) setStyle:(UIProgressIndicatorStyle)style; -- (void) startAnimation; +- (void) showInView:(UIView *)view; @end @interface UIScroller : UIView @@ -80,6 +74,7 @@ typedef enum { - (void) setOffset:(CGPoint)offset; - (void) setScrollDecelerationFactor:(float)factor; - (void) setScrollHysteresis:(float)hysteresis; +- (void) setScrollerIndicatorStyle:(UIScrollViewIndicatorStyle)style; - (void) setThumbDetectionEnabled:(BOOL)enabled; @end @@ -123,6 +118,9 @@ typedef enum { @interface UIWebViewWebViewDelegate : NSObject { @public UIWebView *uiWebView; } + +- (void) _clearUIWebView; + @end // }}} // @interface *Button : * {{{ @@ -149,8 +147,26 @@ typedef enum { + (WebDefaultUIKitDelegate *) sharedUIKitDelegate; @end // }}} +// @interface UIWeb* : * {{{ +@interface UIWebBrowserView : UIWebDocumentView +@end + +@interface UIWebTouchEventsGestureRecognizer : UIGestureRecognizer +- (int) type; +- (NSString *) _typeDescription; +@end +// }}} +// @interface WAK* : * {{{ +@interface WAKWindow : NSObject ++ (BOOL) hasLandscapeOrientation; +@end +// }}} // @interface NS* (*) {{{ +@interface NSMutableURLRequest (Apple) +- (void) setHTTPShouldUsePipelining:(BOOL)pipelining; +@end + @interface NSString (Apple) - (NSString *) stringByAddingPercentEscapes; - (NSString *) stringByReplacingCharacter:(UniChar)from withCharacter:(UniChar)to; @@ -166,6 +182,11 @@ typedef enum { - (NSURL *) youTubeURL; @end +@interface NSURLRequest (Apple) ++ (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *)host; ++ (void) setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString *)host; +@end + @interface NSValue (Apple) + (NSValue *) valueWithSize:(CGSize)size; @end @@ -195,6 +216,7 @@ typedef enum { - (void) applicationWillResignActive:(UIApplication *)application; - (void) applicationWillSuspend; - (void) launchApplicationWithIdentifier:(NSString *)identifier suspended:(BOOL)suspended; +- (void) openURL:(NSURL *)url asPanel:(BOOL)panel; - (void) setStatusBarShowsProgress:(BOOL)shows; - (void) _setSuspended:(BOOL)suspended; - (void) terminateWithSuccess; @@ -213,7 +235,7 @@ typedef enum { @end @interface UIDevice (Apple) -- (BOOL) isWildcat; +- (NSString *) uniqueIdentifier; @end @interface UIImage (Apple) @@ -237,13 +259,13 @@ typedef enum { @interface UITabBarController (Apple) - (UITransitionView *) _transitionView; -- (UIViewController *) transientViewController; -- (void) setTransientViewController:(UIViewController *)controller; -- (void) setTransientViewController:(UIViewController *)controller animated:(BOOL)animated; +- (void) concealTabBarSelection; +- (void) revealTabBarSelection; @end @interface UITabBarItem (Apple) - (void) setAnimatedBadge:(BOOL)animated; +- (UIView *) view; @end @interface UITableViewCell (Apple) @@ -273,10 +295,12 @@ typedef enum { - (void) setValue:(NSValue *)value forGestureAttribute:(NSInteger)attribute; - (void) setZoomScale:(float)scale duration:(double)duration; - (void) _setZoomScale:(float)scale duration:(double)duration; +- (void) setOrigin:(CGPoint)origin; @end @interface UIViewController (Apple) - (void) _updateLayoutForStatusBarAndInterfaceOrientation; +- (void) unloadView; @end @interface UIWindow (Apple) @@ -290,10 +314,12 @@ 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; - (void) webView:(WebView *)view didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; +- (void) webView:(WebView *)view didCommitLoadForFrame:(WebFrame *)frame; - (void) webView:(WebView *)view didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - (void) webView:(WebView *)view didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame; - (void) webView:(WebView *)view didFinishLoadForFrame:(WebFrame *)frame; @@ -306,6 +332,17 @@ typedef enum { - (void) webViewClose:(WebView *)view; @end // }}} +// @interface Web* (*) {{{ +@interface WebFrame (Apple) +- (void) setNeedsLayout; +@end + +@interface WebPreferences (Apple) ++ (void) _setInitialDefaultTextEncodingToSystemEncoding; +- (void) _setLayoutInterval:(NSInteger)interval; +- (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled; +@end +// }}} // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{ #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER @@ -339,11 +376,11 @@ typedef enum { @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; @@ -359,6 +396,22 @@ extern float const UIScrollViewDecelerationRateNormal; #endif // }}} +#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_4_0 +#define kCFCoreFoundationVersionNumber_iPhoneOS_4_0 550.32 +#endif + +@interface UITabBarItem (iOS_7_0) +- (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage; +@end + +@interface UIScreen (iOS_4_0) +@property(nonatomic,readonly) CGFloat scale; +@end + +@interface DOMHTMLIFrameElement (IDL) +- (WebFrame *) contentFrame; +@end + // extern *; {{{ extern CFStringRef const kGSDisplayIdentifiersCapability; extern float const UIWebViewGrowsAndShrinksToFitHeight; @@ -367,6 +420,7 @@ extern float const UIWebViewScalesToFitScale; // extern "C" *(); {{{ extern "C" void *reboot2(uint64_t flags); extern "C" mach_port_t SBSSpringBoardServerPort(); +extern "C" int SBBundlePathForDisplayIdentifier(mach_port_t port, const char *identifier, char *path); extern "C" UIImage *_UIImageWithName(NSString *name); extern "C" void UISetColor(CGColorRef color); // }}}