diff options
author | jdduke <jdduke@chromium.org> | 2015-04-14 17:08:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-15 00:09:26 +0000 |
commit | 3628fb3825e9119a4f96b0d425ffdf2c608bd6b7 (patch) | |
tree | 40571701e4e4fc2d8c95dc1ed41b9fc9ad4e2cda /android_webview/test | |
parent | ca8dd4aa03e5edb6432d0decbd283467bc3b0b1f (diff) | |
download | chromium_src-3628fb3825e9119a4f96b0d425ffdf2c608bd6b7.zip chromium_src-3628fb3825e9119a4f96b0d425ffdf2c608bd6b7.tar.gz chromium_src-3628fb3825e9119a4f96b0d425ffdf2c608bd6b7.tar.bz2 |
[Android] Allow custom ActionMode creation via ContentViewClient
Use the ContentViewClient to create the selection ActionMode. This
allows the embedder to completely control the style and behavior
of the ActionMode popup.
BUG=389153
NOTRY=true
Review URL: https://codereview.chromium.org/1066053002
Cr-Commit-Position: refs/heads/master@{#325154}
Diffstat (limited to 'android_webview/test')
-rw-r--r-- | android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java b/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java index fc88ff3a..6d6022f 100644 --- a/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java +++ b/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java @@ -25,6 +25,8 @@ import org.chromium.android_webview.JsPromptResultReceiver; import org.chromium.android_webview.JsResultReceiver; import org.chromium.android_webview.permission.AwPermissionRequest; import org.chromium.base.ThreadUtils; +import org.chromium.content.browser.SelectActionMode; +import org.chromium.content.browser.SelectActionModeCallback.ActionHandler; import java.security.Principal; @@ -82,6 +84,17 @@ public class NullContentsClient extends AwContentsClient { } @Override + public SelectActionMode startActionMode( + View view, ActionHandler actionHandler, boolean floating) { + return null; + } + + @Override + public boolean supportsFloatingActionMode() { + return false; + } + + @Override public void onLoadResource(String url) { } |