cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [13/50] [abbrv] ios commit: Added URL property to CDVWebViewEngineProtocol
Date Thu, 19 Mar 2015 16:56:02 GMT
Added URL property to CDVWebViewEngineProtocol


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/57773088
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/57773088
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/57773088

Branch: refs/heads/unplug-whitelist
Commit: 57773088ef6acd96ef796369c0811725b658206a
Parents: e9e3265
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Fri Mar 13 18:49:05 2015 -0700
Committer: Shazron Abdullah <shazron@gmail.com>
Committed: Fri Mar 13 18:49:05 2015 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVUIWebViewEngine.m       | 5 +++++
 CordovaLib/Classes/CDVWebViewEngineProtocol.h | 2 ++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/57773088/CordovaLib/Classes/CDVUIWebViewEngine.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVUIWebViewEngine.m b/CordovaLib/Classes/CDVUIWebViewEngine.m
index c222e15..3e01b08 100644
--- a/CordovaLib/Classes/CDVUIWebViewEngine.m
+++ b/CordovaLib/Classes/CDVUIWebViewEngine.m
@@ -80,6 +80,11 @@
     return nil;
 }
 
+- (NSURL*)URL
+{
+    return [[(UIWebView*)_engineWebView request] URL];
+}
+
 - (void)updateSettings:(NSDictionary*)settings
 {
     UIWebView* uiWebView = (UIWebView*)_engineWebView;

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/57773088/CordovaLib/Classes/CDVWebViewEngineProtocol.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVWebViewEngineProtocol.h b/CordovaLib/Classes/CDVWebViewEngineProtocol.h
index a36a7f4..18c1831 100644
--- a/CordovaLib/Classes/CDVWebViewEngineProtocol.h
+++ b/CordovaLib/Classes/CDVWebViewEngineProtocol.h
@@ -33,6 +33,8 @@
 - (id)loadHTMLString:(NSString*)string baseURL:(NSURL*)baseURL;
 - (void)evaluateJavaScript:(NSString*)javaScriptString completionHandler:(void (^)(id, NSError*))completionHandler;
 
+- (NSURL*)URL;
+
 - (instancetype)initWithFrame:(CGRect)frame;
 - (void)updateWithInfo:(NSDictionary*)info;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message