X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/7d2ac47f3369cf198f78970363f0f31bd3cd44ee..31f8d96ae92f9a2288a32392eeeaf8667b01c29e:/UICaboodle/BrowserView.h?ds=sidebyside diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index caafaa52..69d0bfc8 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,5 +1,25 @@ #import "ResetView.h" +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#import +#import + +#include +#include + +#import + @class NSMutableArray; @class NSString; @class NSURL; @@ -7,36 +27,96 @@ @class UIProgressIndicator; @class UIScroller; -@class UIWebView; +@class UIDocumentWebView; @class WebView; @class Database; +@class IndirectDelegate; + +@interface WebScriptObject (UICaboodle) +- (unsigned) count; +- (id) objectAtIndex:(unsigned)index; +@end -@interface BrowserView : RVPage { - _transient Database *database_; +@protocol BrowserViewDelegate +- (UCViewController *) pageForURL:(NSURL *)url hasTag:(int *)tag; +@end + +@interface BrowserView : UCViewController { UIScroller *scroller_; - UIWebView *webview_; - NSMutableArray *urls_; + UIWebDocumentView *document_; UIProgressIndicator *indicator_; + IndirectDelegate *indirect_; + 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_; + + float width_; + bool popup_; + + CGSize size_; + bool editing_; + + Class class_; } ++ (void) _initialize; + +- (void) alertSheet:(UIActionSheet *)sheet buttonClicked:(int)button; + - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; - (void) loadURL:(NSURL *)url; - (void) loadRequest:(NSURLRequest *)request; - (void) reloadURL; +- (bool) isLoading; + +- (void) fixScroller; - (WebView *) webView; +- (UIWebDocumentView *) documentView; + +- (id) init; +- (id) initWithWidth:(float)width; +- (id) initWithWidth:(float)width ofClass:(Class)_class; -- (id) initWithBook:(RVBook *)book database:(Database *)database; +- (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; -@end +- (NSURLRequest *) webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)source; + ++ (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; + +- (bool) promptForSensitive:(NSString *)name; +- (bool) allowSensitiveRequests; + +@end \ No newline at end of file