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

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, 7 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 bda984042ad86895e6f2b6c56cda90e16604342f..7982f39b96720e08e74eae6000a6b9debbe1d0fb 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;
@@ -116,6 +117,18 @@ public final class ContentShellTestCommon {
}, WAIT_FOR_ACTIVE_SHELL_LOADING_TIMEOUT, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
}
+ OnCursorUpdateHelper getOnCursorUpdateHelper() throws ExecutionException {
+ return ThreadUtils
+ .runOnUiThreadBlocking(new Callable<Shell>() {
+ @Override
+ public Shell call() {
+ return mCallback.getActivityForTestCommon().getActiveShell();
+ }
+ })
+ .getViewAndroidDelegate()
boliu 2017/06/02 15:54:41 these two should be on UI thread as well
jaebaek 2017/06/03 14:24:10 Done.
+ .getOnCursorUpdateHelper();
+ }
+
ContentViewCore getContentViewCore() {
return mCallback.getActivityForTestCommon().getActiveShell().getContentViewCore();
}

Powered by Google App Engine
This is Rietveld 408576698