X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/f4772bd1011235a2bd777ed6236f6f8041335eae..62fc71463d6f0aacc01348848af1265752a876c4:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index a37d326b..af083d33 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,6 +1,5 @@ #import "ResetView.h" - #include #include #include @@ -35,7 +34,18 @@ @class Database; @class IndirectDelegate; -@interface BrowserView : RVPage { +@interface WebScriptObject (UICaboodle) +- (unsigned) count; +- (id) objectAtIndex:(unsigned)index; +@end + +@protocol BrowserViewDelegate +- (RVPage *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@end + +@interface BrowserView : RVPage < + RVBookHook +> { UIScroller *scroller_; UIWebDocumentView *webview_; UIProgressIndicator *indicator_; @@ -46,15 +56,26 @@ NSURLRequest *request_; NSNumber *confirm_; + NSNumber *sensitive_; NSString *title_; - bool loading_; + NSMutableSet *loading_; bool reloading_; NSString *button_; NSString *style_; + WebScriptObject *function_; + WebScriptObject *closer_; + WebScriptObject *special_; + WebScriptObject *finish_; bool pushed_; + + float width_; + bool popup_; + + CGSize size_; + bool editing_; } - (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; @@ -64,12 +85,35 @@ - (void) loadRequest:(NSURLRequest *)request; - (void) reloadURL; +- (bool) isLoading; + +- (void) fixScroller; - (WebView *) webView; +- (UIWebDocumentView *) documentView; - (id) initWithBook:(RVBook *)book; +- (id) initWithBook:(RVBook *)book forWidth:(float)width; + +- (NSString *) stringByEvaluatingJavaScriptFromString:(NSString *)script; +- (void) callFunction:(WebScriptObject *)function; - (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; + +- (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; +- (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; +- (void) setFinishHook:(id)function; +- (void) setPopupHook:(id)function; + +- (id) _rightButtonTitle; + +- (bool) promptForSensitive:(NSString *)name; +- (bool) allowSensitiveRequests; + @end