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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java

Issue 1242613002: [Android] Supporting floating select ActionModes for web content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months 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/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java b/android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java
index 37915afb2b54c610493430dea92d15cea298e153..42e9225d06234ab636444a0bec3218f0b07454ff 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java
@@ -6,17 +6,12 @@ package org.chromium.android_webview.test;
import android.graphics.Picture;
import android.net.http.SslError;
-import android.view.ActionMode;
-import android.view.View;
import android.webkit.ConsoleMessage;
import android.webkit.ValueCallback;
import org.chromium.android_webview.AwContentsClient.AwWebResourceRequest;
import org.chromium.android_webview.AwWebResourceResponse;
import org.chromium.base.ThreadUtils;
-import org.chromium.content.browser.WebActionMode;
-import org.chromium.content.browser.WebActionModeCallback;
-import org.chromium.content.browser.WebActionModeCallback.ActionHandler;
import org.chromium.content.browser.test.util.CallbackHelper;
import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnEvaluateJavaScriptResultHelper;
import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnPageCommitVisibleHelper;
@@ -221,16 +216,6 @@ public class TestAwContentsClient extends NullContentsClient {
mOnReceivedSslErrorHelper.notifyCalled();
}
- @Override
- public WebActionMode startActionMode(
- View view, ActionHandler actionHandler, boolean floating) {
- if (floating) return null;
- ActionMode.Callback callback =
- new WebActionModeCallback(view.getContext(), actionHandler);
- ActionMode actionMode = view.startActionMode(callback);
- return actionMode != null ? new WebActionMode(actionMode) : null;
- }
-
public void setAllowSslError(boolean allow) {
mAllowSslError = allow;
}

Powered by Google App Engine
This is Rietveld 408576698