Repository: cordova-amazon-fireos Updated Branches: refs/heads/master f69e724c6 -> f4990a56f
Added overloaded constructor for CordovaWebView with Bundle as parameter. Need it for AmazonWebChromeClient.onCreateWindow callback. Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/f4990a56 Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/f4990a56 Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/f4990a56 Branch: refs/heads/master Commit: f4990a56f18643ac7de66af723d668c1e79359b6 Parents: 6e3e68d Author: Archana Naik <[email protected]> Authored: Mon Mar 10 11:30:22 2014 -0700 Committer: Archana Naik <[email protected]> Committed: Mon Mar 10 12:21:39 2014 -0700 ---------------------------------------------------------------------- .../src/org/apache/cordova/CordovaWebView.java | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/f4990a56/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 d59da69..c6a28dd 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -186,6 +186,32 @@ public class CordovaWebView extends AmazonWebView { this.setup(); } +////fireos_change //// + /** + * Constructor + * The extraData bundle is needed for AmazonWebChromeClient.onCreateWindow callback. + * It's just an opaque data that needs to be passed from one call to the other. + * + * @param context + * @param extraData + */ + public CordovaWebView(Context context, Bundle extraData) { + super(context); + + if (CordovaInterface.class.isInstance(context)) + { + this.cordova = (CordovaInterface) context; + this.cordova.getFactory().initializeWebView(this, 0xFFFFFF, false, extraData); + } + else + { + Log.d(TAG, "Your activity must implement CordovaInterface to work"); + } + this.loadConfiguration(); + this.setup(); + } +////fireos_change //// + /** * Constructor. *
