X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/dcc55b8bee7dc7def76c6318f6c2df49cc6eff09..251e8f8515226110c89805520a39bcea264a9407:/UICaboodle/BrowserView.h?ds=sidebyside diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index 2cb91dae..69fd35cf 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,6 +1,5 @@ #import "ResetView.h" - #include #include #include @@ -34,27 +33,39 @@ @class Database; @class IndirectDelegate; -@class CydiaObject; -@interface BrowserView : RVPage { +@interface WebScriptObject (UICaboodle) +- (unsigned) count; +- (id) objectAtIndex:(unsigned)index; +@end + +@protocol BrowserControllerDelegate +- (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@end + +@interface BrowserController : UCViewController { UIScroller *scroller_; - UIWebDocumentView *webview_; + UIWebDocumentView *document_; UIProgressIndicator *indicator_; IndirectDelegate *indirect_; - CydiaObject *cydia_; NSURLAuthenticationChallenge *challenge_; bool error_; 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_; @@ -63,8 +74,15 @@ CGSize size_; bool editing_; + + Class class_; + + id reloaditem_; + id loadingitem_; } ++ (void) _initialize; + - (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; @@ -72,19 +90,34 @@ - (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; +- (id) init; +- (id) initWithWidth:(float)width; +- (id) initWithWidth:(float)width ofClass:(Class)_class; + +- (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; -- (id) _rightButtonTitle; +- (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; -@end +- (bool) promptForSensitive:(NSString *)name; +- (bool) allowSensitiveRequests; + +@end \ No newline at end of file