Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1773)

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java

Issue 11362183: [Android WebView] AwContentsClient.shouldCreateWindow callback part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase for landing Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
index 8cb1bff79aff2dd1c31518bd5570345e699c007c..46837e3c05c35fa77b67e2719fa160365ae95058 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
@@ -4,6 +4,7 @@
package org.chromium.android_webview;
+import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.content.components.web_contents_delegate_android.WebContentsDelegateAndroid;
@@ -15,4 +16,8 @@ import org.chromium.content.components.web_contents_delegate_android.WebContents
*/
@JNINamespace("android_webview")
public class AwWebContentsDelegate extends WebContentsDelegateAndroid {
+ @CalledByNative
+ public boolean addNewContents(boolean isDialog, boolean isUserGesture) {
+ return false;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698