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

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..78c146f72d2a88958c2b0da9ebb55d3b276d3346 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
@@ -116,6 +116,13 @@ public final class ContentShellTestCommon {
}, WAIT_FOR_ACTIVE_SHELL_LOADING_TIMEOUT, CriteriaHelper.DEFAULT_POLLING_INTERVAL);
}
+ void setCursorUpdateCallback(Runnable callback) {
+ mCallback.getActivityForTestCommon()
+ .getActiveShell()
boliu 2017/05/31 16:30:03 activity accessors should happen on ui thread. use
jaebaek 2017/06/01 06:20:56 Ok, I will update it in that way, but have a quest
boliu 2017/06/01 16:14:50 they are probably also unsafe, in theory
+ .getViewAndroidDelegate()
+ .setOnCursorUpdate(callback);
+ }
+
ContentViewCore getContentViewCore() {
return mCallback.getActivityForTestCommon().getActiveShell().getContentViewCore();
}

Powered by Google App Engine
This is Rietveld 408576698