incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Forgot to add the proper constructor. The Clients need to know about their webView.
Date Tue, 15 May 2012 22:46:35 GMT
Updated Branches:
  refs/heads/CordovaWebView f840f3ace -> 3b9d46fad


Forgot to add the proper constructor.  The Clients need to know about their webView.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/3b9d46fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/3b9d46fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/3b9d46fa

Branch: refs/heads/CordovaWebView
Commit: 3b9d46fadcc9d1bd4d676d348655ed41a7c2b794
Parents: f840f3a
Author: Joe Bowser <bowserj@apache.org>
Authored: Tue May 15 15:46:10 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Tue May 15 15:46:10 2012 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaWebView.java     |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/3b9d46fa/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index 1b60c15..cdd2fbd 100644
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -106,8 +106,8 @@ public class CordovaWebView extends WebView {
       {
         Log.d(TAG, "Your activity must implement CordovaInterface to work");
       }
-      this.setWebChromeClient(new CordovaChromeClient(this.mCtx));
-      this.setWebViewClient(new CordovaWebViewClient(this.mCtx));
+      this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this));
+      this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this));
       this.loadConfiguration();
       this.setup();
     }
@@ -130,8 +130,8 @@ public class CordovaWebView extends WebView {
         {
           Log.d(TAG, "Your activity must implement CordovaInterface to work");
         }
-        this.setWebChromeClient(new CordovaChromeClient(this.mCtx));
-        this.setWebViewClient(new CordovaWebViewClient(this.mCtx));
+        this.setWebChromeClient(new CordovaChromeClient(this.mCtx, this));
+        this.setWebViewClient(new CordovaWebViewClient(this.mCtx, this));
         this.loadConfiguration();
         this.setup();
     }


Mime
View raw message