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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

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/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 4d30cc70108004e1293246bc4584406ae55a5acd..9f2e2bb35f283c5a9f3288fd06b7a82005e740b7 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -718,7 +718,10 @@ float RenderWidgetHostViewAndroid::GetBottomControlsHeight() const {
}
void RenderWidgetHostViewAndroid::UpdateCursor(const WebCursor& cursor) {
- // There are no cursors on Android.
+ CursorInfo cursor_info;
+ cursor.GetCursorInfo(&cursor_info);
+ view_.OnCursorChanged(cursor_info.type, cursor_info.custom_image,
+ cursor_info.hotspot);
}
void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) {
« no previous file with comments | « no previous file | third_party/WebKit/public/BUILD.gn » ('j') | ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java » ('J')

Powered by Google App Engine
This is Rietveld 408576698