X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/aeeb755bc5d90638e924fe96ef2bc0ab7db0fb8f..6c4239e5a483511e5ca2f2c8be2c27b51cf50f93:/iPhonePrivate.h diff --git a/iPhonePrivate.h b/iPhonePrivate.h index d95c7f45..42a700d8 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -9,6 +9,7 @@ #import #import #import +#import // }}} // typedef enum {*} *; {{{ typedef enum { @@ -39,7 +40,6 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( // @class Web*; {{{ @class WebDataSource; @class WebScriptObject; -@class WebView; // }}} // @protocol *; {{{ @protocol WebPolicyDecisionListener; @@ -210,6 +210,9 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( @end @interface UIApplication (Apple) +- (void) suspendReturningToLastApp:(BOOL)returning; +- (void) suspend; +- (void) applicationSuspend; - (void) applicationSuspend:(GSEventRef)event; - (void) _animateSuspension:(BOOL)suspend duration:(double)duration startTime:(double)start scale:(float)scale; - (void) applicationOpenURL:(NSURL *)url; @@ -239,7 +242,6 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( @end @interface UIImage (Apple) -+ (UIImage *) applicationImageNamed:(NSString *)name; + (UIImage *) imageAtPath:(NSString *)path; @end @@ -330,6 +332,8 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( - (void) webView:(WebView *)view didFinishLoadForFrame:(WebFrame *)frame; - (void) webView:(WebView *)view didReceiveTitle:(id)title forFrame:(id)frame; - (void) webView:(WebView *)view didStartProvisionalLoadForFrame:(WebFrame *)frame; +- (void) webView:(WebView *)view resource:(id)identifier didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)source; +- (void) webView:(WebView *)view resource:(id)identifier didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)source; - (NSURLRequest *) webView:(WebView *)view resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source; - (void) webView:(WebView *)view runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame; - (BOOL) webView:(WebView *)view runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame; @@ -347,6 +351,13 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( - (void) _setLayoutInterval:(NSInteger)interval; - (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled; @end + +@interface WebView (Apple) +- (void) _preferencesChanged:(WebPreferences *)preferences; +- (void) _preferencesChangedNotification:(NSNotification *)notification; +- (void) _setLayoutInterval:(float)interval; +- (void) _setAllowsMessaging:(BOOL)allows; +@end // }}} // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{