summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-29 06:50:47 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-29 06:50:47 -0700
commit6da09548ebbfc7b2412409492fe135a928ab0c64 (patch)
tree4f4932b53dfb8bd74aeadbeb3154f9de1fc1cdbd
parent584daea0344fb5b69171243e6951577256defa07 (diff)
Move WebView (Apple) category to iPhonePrivate.h.
-rw-r--r--CyteKit/WebViewController.mm5
-rw-r--r--CyteKit/WebViewTableViewCell.mm5
-rw-r--r--iPhonePrivate.h7
3 files changed, 6 insertions, 11 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index e5b58d6..bf2643b 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 9fc38ec..b6ffc3f 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 ab1e24e..64e8ea2 100644
--- a/iPhonePrivate.h
+++ b/iPhonePrivate.h
@@ -9,6 +9,7 @@
#import <WebKit/DOMHTMLIFrameElement.h>
#import <WebKit/WebFrame.h>
#import <WebKit/WebPreferences.h>
+#import <WebKit/WebView.h>
// }}}
// 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 {{{