You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/03/14 02:48:53 UTC

ios commit: Added URL property to CDVWebViewEngineProtocol

Repository: cordova-ios
Updated Branches:
  refs/heads/4.0.x e9e3265bd -> 57773088e


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/4.0.x
Commit: 57773088ef6acd96ef796369c0811725b658206a
Parents: e9e3265
Author: Shazron Abdullah <sh...@gmail.com>
Authored: Fri Mar 13 18:49:05 2015 -0700
Committer: Shazron Abdullah <sh...@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