diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-06-16 07:06:48 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:15 +0000 |
commit | 43f3d7f667a56659b4ac4b2e8171fbf8b7cc3c94 (patch) | |
tree | 72ccb2249620bfcd9141772276a5a9025b069a96 /UICaboodle/BrowserView.h | |
parent | 0dceb29b5b709a6f9cfea52648941a6c2c5ef46b (diff) |
We prefer this factoring.
Diffstat (limited to 'UICaboodle/BrowserView.h')
-rw-r--r-- | UICaboodle/BrowserView.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index f02e679..af083d3 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,6 +1,5 @@ #import "ResetView.h" - #include <WebKit/DOMCSSPrimitiveValue.h> #include <WebKit/DOMCSSStyleDeclaration.h> #include <WebKit/DOMDocument.h> @@ -34,7 +33,15 @@ @class Database; @class IndirectDelegate; -@class CydiaObject; + +@interface WebScriptObject (UICaboodle) +- (unsigned) count; +- (id) objectAtIndex:(unsigned)index; +@end + +@protocol BrowserViewDelegate +- (RVPage *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@end @interface BrowserView : RVPage < RVBookHook @@ -43,7 +50,6 @@ UIWebDocumentView *webview_; UIProgressIndicator *indicator_; IndirectDelegate *indirect_; - CydiaObject *cydia_; NSURLAuthenticationChallenge *challenge_; bool error_; @@ -95,6 +101,8 @@ - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame; - (void) webView:(WebView *)sender didClearWindowObject:(WebScriptObject *)window forFrame:(WebFrame *)frame; +- (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; + + (float) defaultWidth; - (void) setViewportWidth:(float)width; |