summaryrefslogtreecommitdiffstats
path: root/android_webview/javatests
diff options
context:
space:
mode:
authorbenm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 16:39:44 +0000
committerbenm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 16:39:44 +0000
commit5daf9a9c800237b611c5c78fa973b75e5fd7a1a9 (patch)
tree028dfbc59c5f9056c5ffd9913555f5fe73a2f11a /android_webview/javatests
parentaa7e9157c11105268e3c73d788c544d0511a7ff2 (diff)
downloadchromium_src-5daf9a9c800237b611c5c78fa973b75e5fd7a1a9.zip
chromium_src-5daf9a9c800237b611c5c78fa973b75e5fd7a1a9.tar.gz
chromium_src-5daf9a9c800237b611c5c78fa973b75e5fd7a1a9.tar.bz2
[Android WebView] AwContentsClient.shouldCreateWindow callback part 1.
Provide the plumbing from WebContentsDelegate out to AwContentsClient to allow the embedder to respond to requests to create pop up windows. For now we only support the embedder blocking the pop up window; code to support showing the window to follow in a later patch. Note that the AwResourceDispatcherHostDelegate is refactored to support lazily checking the AwContentsIoThreadClient, as we may receive resource requests for the popup window before the Java side has been entirely hooked up. Android bots happy. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11362183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/javatests')
-rw-r--r--android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java b/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
index 594b322..9245f7f 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java
@@ -90,4 +90,9 @@ class NullContentsClient extends AwContentsClient {
public void onFormResubmission(Message dontResend, Message resend) {
dontResend.sendToTarget();
}
+
+ @Override
+ public boolean onCreateWindow(boolean isDialog, boolean isUserGesture) {
+ return false;
+ }
}