X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/0fc560b63efa94e4aef1d48fd6c2d07b6f615f3f..017b2b71becf7aa4d409e0ce9dbf3dd8e5472255:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index f02e6793..bd956b83 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,6 +1,5 @@ #import "ResetView.h" - #include #include #include @@ -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_; @@ -70,8 +76,12 @@ CGSize size_; bool editing_; + + Class class_; } ++ (void) _initialize; + - (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; @@ -88,6 +98,7 @@ - (id) initWithBook:(RVBook *)book; - (id) initWithBook:(RVBook *)book forWidth:(float)width; +- (id) initWithBook:(RVBook *)book forWidth:(float)width ofClass:(Class)_class; - (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; - (void) callFunction:(WebScriptObject *)function; @@ -95,6 +106,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;