X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/72bdb25841675b854c4f782dd0a3f6decd928a3f..5cdfcd6ff1223d3200b8f8a051b07f137e353604:/UICaboodle/BrowserView.h diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index f6d689aa..f44e6bac 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -10,6 +10,8 @@ #import +#include "substrate.h" + @class NSMutableArray; @class NSString; @class NSURL; @@ -53,7 +55,7 @@ @protocol BrowserControllerDelegate - (void) retainNetworkActivityIndicator; - (void) releaseNetworkActivityIndicator; -- (CYViewController *) pageForURL:(NSURL *)url; +- (CYViewController *) pageForURL:(NSURL *)url forExternal:(BOOL)external; @end @interface BrowserController : CYViewController < @@ -77,10 +79,10 @@ NSMutableSet *loading_; // XXX: NSString * or UIImage * - id custom_; - NSString *style_; + _H custom_; + _H style_; - WebScriptObject *function_; + _H function_; WebScriptObject *closer_; float width_; @@ -88,6 +90,9 @@ UIBarButtonItem *reloaditem_; UIBarButtonItem *loadingitem_; + + bool visible_; + bool hidesNavigationBar_; } + (void) _initialize; @@ -98,9 +103,11 @@ - (void) loadURL:(NSURL *)url; - (void) loadRequest:(NSURLRequest *)request; -- (void) reloadURL; - (bool) isLoading; +- (void) reloadURLWithCache:(BOOL)cache; +- (void) reloadURL; + - (id) init; - (id) initWithURL:(NSURL *)url; - (id) initWithWidth:(float)width; @@ -116,6 +123,7 @@ - (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; - (void) setButtonTitle:(NSString *)button withStyle:(NSString *)style toFunction:(id)function; - (void) setPopupHook:(id)function; +- (void) setHidesNavigationBar:(bool)value; - (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)button; - (void) customButtonClicked; @@ -126,4 +134,8 @@ - (void) close; +- (void) dispatchEvent:(NSString *)event; + +- (void) setViewportWidthOnMainThread:(float)value; + @end