X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/bd0a4099eec1afbfaefa65545259b7096daf8bfd..53fc637a778ac202bd264a650426eb7b9121bf6f:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index a3e1830b..eb11d6c3 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -36,7 +36,9 @@ @class IndirectDelegate; @class CydiaObject; -@interface BrowserView : RVPage { +@interface BrowserView : RVPage < + RVBookHook +> { UIScroller *scroller_; UIWebDocumentView *webview_; UIProgressIndicator *indicator_; @@ -49,17 +51,24 @@ NSNumber *confirm_; 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; @@ -69,6 +78,9 @@ - (void) loadRequest:(NSURLRequest *)request; - (void) reloadURL; +- (bool) isLoading; + +- (void) fixScroller; - (WebView *) webView; - (UIWebDocumentView *) documentView; @@ -76,10 +88,19 @@ - (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; + (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;