From: Jay Freeman (saurik) Date: Wed, 29 Oct 2014 13:50:47 +0000 (-0700) Subject: Move WebView (Apple) category to iPhonePrivate.h. X-Git-Tag: v1.1.14~20 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/6da09548ebbfc7b2412409492fe135a928ab0c64 Move WebView (Apple) category to iPhonePrivate.h. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index e5b58d67..bf2643b2 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -45,11 +45,6 @@ static Class $MFMailComposeViewController; float CYScrollViewDecelerationRateNormal; -@interface WebView (Apple) -- (void) _setLayoutInterval:(float)interval; -- (void) _setAllowsMessaging:(BOOL)allows; -@end - @interface WebFrame (Cydia) - (void) cydia$updateHeight; @end diff --git a/CyteKit/WebViewTableViewCell.mm b/CyteKit/WebViewTableViewCell.mm index 9fc38ecc..b6ffc3fa 100644 --- a/CyteKit/WebViewTableViewCell.mm +++ b/CyteKit/WebViewTableViewCell.mm @@ -22,11 +22,6 @@ #include "CyteKit/WebViewTableViewCell.h" #include "iPhonePrivate.h" -@interface WebView (Apple) -- (void) _setLayoutInterval:(float)interval; -- (void) _setAllowsMessaging:(BOOL)allows; -@end - @implementation CyteWebViewTableViewCell + (CyteWebViewTableViewCell *) cellWithRequest:(NSURLRequest *)request { diff --git a/iPhonePrivate.h b/iPhonePrivate.h index ab1e24e8..64e8ea28 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; @@ -351,6 +351,11 @@ static const UIActivityIndicatorViewStyle UIActivityIndicatorViewStyleWhiteTiny( - (void) _setLayoutInterval:(NSInteger)interval; - (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled; @end + +@interface WebView (Apple) +- (void) _setLayoutInterval:(float)interval; +- (void) _setAllowsMessaging:(BOOL)allows; +@end // }}} // #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER {{{