From 73e3d5d4077636487f07be1beff3b2714ee2b276 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Mon, 25 Mar 2013 15:57:26 +0000 Subject: upgrade to phonegap 2.5 for ios --- iPhone/CordovaLib/Classes/CDVInAppBrowser.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'iPhone/CordovaLib/Classes/CDVInAppBrowser.h') diff --git a/iPhone/CordovaLib/Classes/CDVInAppBrowser.h b/iPhone/CordovaLib/Classes/CDVInAppBrowser.h index 51199ed..9ff460a 100755 --- a/iPhone/CordovaLib/Classes/CDVInAppBrowser.h +++ b/iPhone/CordovaLib/Classes/CDVInAppBrowser.h @@ -31,7 +31,7 @@ @end -@interface CDVInAppBrowser : CDVPlugin {} +@interface CDVInAppBrowser : CDVPlugin @property (nonatomic, retain) CDVInAppBrowserViewController* inAppBrowserViewController; @property (nonatomic, copy) NSString* callbackId; @@ -41,7 +41,13 @@ @end -@interface CDVInAppBrowserViewController : UIViewController {} +@interface CDVInAppBrowserViewController : UIViewController { + @private + NSURL* _requestedURL; + NSString* _userAgent; + NSString* _prevUserAgent; + NSInteger _userAgentLockToken; +} @property (nonatomic, strong) IBOutlet UIWebView* webView; @property (nonatomic, strong) IBOutlet UIBarButtonItem* closeButton; @@ -53,19 +59,26 @@ @property (nonatomic, weak) id orientationDelegate; @property (nonatomic, weak) id navigationDelegate; -@property (nonatomic, strong) NSString* userAgent; - (void)close; - (void)navigateTo:(NSURL*)url; - (void)showLocationBar:(BOOL)show; -- (id)initWithUserAgent:(NSString*)userAgent; +- (id)initWithUserAgent:(NSString*)userAgent prevUserAgent:(NSString*)prevUserAgent; @end @interface CDVInAppBrowserOptions : NSObject {} @property (nonatomic, assign) BOOL location; +@property (nonatomic, copy) NSString* presentationstyle; +@property (nonatomic, copy) NSString* transitionstyle; + +@property (nonatomic, assign) BOOL enableviewportscale; +@property (nonatomic, assign) BOOL mediaplaybackrequiresuseraction; +@property (nonatomic, assign) BOOL allowinlinemediaplayback; +@property (nonatomic, assign) BOOL keyboarddisplayrequiresuseraction; +@property (nonatomic, assign) BOOL suppressesincrementalrendering; + (CDVInAppBrowserOptions*)parseOptions:(NSString*)options; -- cgit v1.2.3