From 5e640a6470aedd93d656f8af152fecc30d1258c0 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Mar 2011 18:43:01 -0700 Subject: [PATCH] Move WebPreferences (Apple) into iPhonePrivate.h. --- CyteKit/WebViewController.mm | 10 ++-------- iPhonePrivate.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 3e77a518..17f19cba 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -16,8 +16,8 @@ extern NSString * const kCAFilterNearest; #include -#include -#include +#import +#import #include #include @@ -47,12 +47,6 @@ float CYScrollViewDecelerationRateNormal; - (void) _setAllowsMessaging:(BOOL)allows; @end -@interface WebPreferences (Apple) -+ (void) _setInitialDefaultTextEncodingToSystemEncoding; -- (void) _setLayoutInterval:(NSInteger)interval; -- (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled; -@end - @implementation WebFrame (Cydia) - (NSString *) description { diff --git a/iPhonePrivate.h b/iPhonePrivate.h index cddfe9cb..c17da916 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -4,6 +4,9 @@ // #include <*> {{{ #include // }}} +// #import <*> {{{ +#import +// }}} // typedef enum {*} *; {{{ typedef enum { UIGestureAttributeMinDegrees, /*float*/ @@ -331,6 +334,13 @@ typedef enum { - (void) webViewClose:(WebView *)view; @end // }}} +// @interface Web* (*) {{{ +@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 -- 2.45.2