X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/61b13caefc3d60ef39eb3a572dc6a090d6424b2b..59a620bf52cb9caf20013b9c04d0aaef65a0cc43:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index af083d33..c61fef41 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,22 +1,12 @@ -#import "ResetView.h" +#import +#import -#include -#include -#include -#include -#include -#include +#import +#include #include -#include -#include #include - -#import -#import - -#include -#include +#include #import @@ -35,19 +25,19 @@ @class IndirectDelegate; @interface WebScriptObject (UICaboodle) -- (unsigned) count; +- (NSUInteger) count; - (id) objectAtIndex:(unsigned)index; @end -@protocol BrowserViewDelegate -- (RVPage *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@protocol BrowserControllerDelegate +- (CYViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; @end -@interface BrowserView : RVPage < - RVBookHook +@interface BrowserController : CYViewController < + HookProtocol > { UIScroller *scroller_; - UIWebDocumentView *webview_; + UIWebDocumentView *document_; UIProgressIndicator *indicator_; IndirectDelegate *indirect_; NSURLAuthenticationChallenge *challenge_; @@ -76,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; @@ -92,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; @@ -111,9 +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