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

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java

Issue 2878403002: Support setting mouse cursor icon in Android N. (Closed)
Patch Set: Support setting mouse cursor icon in Android N Created 3 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: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
index cac7590b74c4c478a1929e6597e92a9f8f3185d4..75ac4bc19d50a4c755433eba085e9f2af431c5f1 100644
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
@@ -32,6 +32,7 @@ import org.chromium.content_public.browser.LoadUrlParams;
import org.chromium.content_public.browser.NavigationController;
import org.chromium.content_public.browser.WebContents;
import org.chromium.content_shell.Shell;
+import org.chromium.content_shell.ShellViewAndroidDelegate.OnCursorUpdateHelper;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
@@ -118,6 +119,18 @@ public final class ContentShellTestCommon {
}, WAIT_FOR_ACTIVE_SHELL_LOADING_TIMEOUT, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
}
+ OnCursorUpdateHelper getOnCursorUpdateHelper() throws ExecutionException {
+ return ThreadUtils.runOnUiThreadBlocking(new Callable<OnCursorUpdateHelper>() {
+ @Override
+ public OnCursorUpdateHelper call() {
+ return mCallback.getActivityForTestCommon()
+ .getActiveShell()
+ .getViewAndroidDelegate()
+ .getOnCursorUpdateHelper();
+ }
+ });
+ }
+
ContentViewCore getContentViewCore() {
return mCallback.getActivityForTestCommon().getActiveShell().getContentViewCore();
}

Powered by Google App Engine
This is Rietveld 408576698