From 6da09548ebbfc7b2412409492fe135a928ab0c64 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 29 Oct 2014 06:50:47 -0700 Subject: [PATCH] Move WebView (Apple) category to iPhonePrivate.h. --- CyteKit/WebViewController.mm | 5 ----- CyteKit/WebViewTableViewCell.mm | 5 ----- iPhonePrivate.h | 7 ++++++- 3 files changed, 6 insertions(+), 11 deletions(-) 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 {{{ -- 2.45.2