X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/61b13caefc3d60ef39eb3a572dc6a090d6424b2b..1e63fe6c2fd1018a669edf272ea87cfb24a2e3af:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index af083d33..23be6317 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,22 +1,9 @@ #import "ResetView.h" -#include -#include -#include -#include #include -#include - #include -#include -#include #include - -#import -#import - -#include -#include +#include #import @@ -39,15 +26,15 @@ - (id) objectAtIndex:(unsigned)index; @end -@protocol BrowserViewDelegate -- (RVPage *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@protocol BrowserControllerDelegate +- (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; @end -@interface BrowserView : RVPage < - RVBookHook +@interface BrowserController : UCViewController < + HookProtocol > { UIScroller *scroller_; - UIWebDocumentView *webview_; + UIWebDocumentView *document_; UIProgressIndicator *indicator_; IndirectDelegate *indirect_; NSURLAuthenticationChallenge *challenge_; @@ -76,9 +63,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; @@ -92,8 +84,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; @@ -111,9 +104,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