diff options
Diffstat (limited to 'iPhone/CordovaLib/Classes/CDVInAppBrowser.h')
-rwxr-xr-x | iPhone/CordovaLib/Classes/CDVInAppBrowser.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/iPhone/CordovaLib/Classes/CDVInAppBrowser.h b/iPhone/CordovaLib/Classes/CDVInAppBrowser.h index 9ff460a..248274a 100755 --- a/iPhone/CordovaLib/Classes/CDVInAppBrowser.h +++ b/iPhone/CordovaLib/Classes/CDVInAppBrowser.h @@ -20,33 +20,30 @@ #import "CDVPlugin.h" #import "CDVInvokedUrlCommand.h" #import "CDVScreenOrientationDelegate.h" +#import "CDVWebViewDelegate.h" @class CDVInAppBrowserViewController; -@protocol CDVInAppBrowserNavigationDelegate <NSObject> - -- (void)browserLoadStart:(NSURL*)url; -- (void)browserLoadStop:(NSURL*)url; -- (void)browserExit; - -@end - -@interface CDVInAppBrowser : CDVPlugin <CDVInAppBrowserNavigationDelegate> +@interface CDVInAppBrowser : CDVPlugin { + BOOL _injectedIframeBridge; +} @property (nonatomic, retain) CDVInAppBrowserViewController* inAppBrowserViewController; @property (nonatomic, copy) NSString* callbackId; - (void)open:(CDVInvokedUrlCommand*)command; - (void)close:(CDVInvokedUrlCommand*)command; +- (void)injectScriptCode:(CDVInvokedUrlCommand*)command; +- (void)show:(CDVInvokedUrlCommand*)command; @end @interface CDVInAppBrowserViewController : UIViewController <UIWebViewDelegate>{ @private - NSURL* _requestedURL; NSString* _userAgent; NSString* _prevUserAgent; NSInteger _userAgentLockToken; + CDVWebViewDelegate* _webViewDelegate; } @property (nonatomic, strong) IBOutlet UIWebView* webView; @@ -58,11 +55,14 @@ @property (nonatomic, strong) IBOutlet UIToolbar* toolbar; @property (nonatomic, weak) id <CDVScreenOrientationDelegate> orientationDelegate; -@property (nonatomic, weak) id <CDVInAppBrowserNavigationDelegate> navigationDelegate; +@property (nonatomic, weak) CDVInAppBrowser* navigationDelegate; +@property (nonatomic) NSURL* currentURL; - (void)close; - (void)navigateTo:(NSURL*)url; - (void)showLocationBar:(BOOL)show; +- (void)showToolBar:(BOOL)show; +- (void)setCloseButtonTitle:(NSString*)title; - (id)initWithUserAgent:(NSString*)userAgent prevUserAgent:(NSString*)prevUserAgent; @@ -71,6 +71,9 @@ @interface CDVInAppBrowserOptions : NSObject {} @property (nonatomic, assign) BOOL location; +@property (nonatomic, assign) BOOL toolbar; +@property (nonatomic, copy) NSString* closebuttoncaption; + @property (nonatomic, copy) NSString* presentationstyle; @property (nonatomic, copy) NSString* transitionstyle; @@ -79,6 +82,7 @@ @property (nonatomic, assign) BOOL allowinlinemediaplayback; @property (nonatomic, assign) BOOL keyboarddisplayrequiresuseraction; @property (nonatomic, assign) BOOL suppressesincrementalrendering; +@property (nonatomic, assign) BOOL hidden; + (CDVInAppBrowserOptions*)parseOptions:(NSString*)options; |