diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 18:43:01 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-21 18:43:01 -0700 |
commit | 5e640a6470aedd93d656f8af152fecc30d1258c0 (patch) | |
tree | b1cd172afc9bd318353753b9f3e991af0d230ce4 | |
parent | 85ae5f425846efc75aadbab17c91b92230aff7a4 (diff) |
Move WebPreferences (Apple) into iPhonePrivate.h.
-rw-r--r-- | CyteKit/WebViewController.mm | 10 | ||||
-rw-r--r-- | iPhonePrivate.h | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 3e77a51..17f19cb 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -16,8 +16,8 @@ extern NSString * const kCAFilterNearest; #include <WebCore/WebCoreThread.h> -#include <WebKit/WebKitErrors.h> -#include <WebKit/WebPreferences.h> +#import <WebKit/WebKitErrors.h> +#import <WebKit/WebPreferences.h> #include <WebKit/DOMCSSPrimitiveValue.h> #include <WebKit/DOMCSSStyleDeclaration.h> @@ -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 cddfe9c..c17da91 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -4,6 +4,9 @@ // #include <*> {{{ #include <GraphicsServices/GraphicsServices.h> // }}} +// #import <*> {{{ +#import <WebKit/WebPreferences.h> +// }}} // 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 |