X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/9d7f5e2d9bf78f970b62600b732d397eb1bdcc6f..ff1a355f39b4baacc1163b19e3ab7e99109cce4b:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index eb11d6c3..c61fef41 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,23 +1,12 @@ -#import "ResetView.h" +#import +#import +#import -#include -#include -#include -#include #include -#include - #include -#include -#include #include - -#import -#import - -#include -#include +#include #import @@ -34,22 +23,30 @@ @class Database; @class IndirectDelegate; -@class CydiaObject; -@interface BrowserView : RVPage < - RVBookHook +@interface WebScriptObject (UICaboodle) +- (NSUInteger) count; +- (id) objectAtIndex:(unsigned)index; +@end + +@protocol BrowserControllerDelegate +- (CYViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@end + +@interface BrowserController : CYViewController < + HookProtocol > { UIScroller *scroller_; - UIWebDocumentView *webview_; + UIWebDocumentView *document_; UIProgressIndicator *indicator_; IndirectDelegate *indirect_; - CydiaObject *cydia_; NSURLAuthenticationChallenge *challenge_; bool error_; NSURLRequest *request_; NSNumber *confirm_; + NSNumber *sensitive_; NSString *title_; NSMutableSet *loading_; bool reloading_; @@ -69,9 +66,14 @@ CGSize size_; bool editing_; + + Class class_; + + id reloaditem_; + id loadingitem_; } -- (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; ++ (void) _initialize; - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; - (void) loadURL:(NSURL *)url; @@ -85,8 +87,9 @@ - (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; @@ -94,6 +97,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; @@ -102,6 +107,14 @@ - (void) setFinishHook:(id)function; - (void) setPopupHook:(id)function; -- (id) _rightButtonTitle; +- (bool) promptForSensitive:(NSString *)name; +- (bool) allowSensitiveRequests; + +- (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)button; +- (void) customButtonClicked; +- (void) applyRightButton; + +- (void) _startLoading; +- (void) close; @end