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

Unified Diff: ui/android/view_android.h

Issue 2878403002: Support setting mouse cursor icon in Android N. (Closed)
Patch Set: Support setting pointer 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: ui/android/view_android.h
diff --git a/ui/android/view_android.h b/ui/android/view_android.h
index fbd3c452cd1bfc555b5e50c828b7d4f2ad255c22..1a81fcd3c96a7d1d2229185bf1e0b0adb3203240 100644
--- a/ui/android/view_android.h
+++ b/ui/android/view_android.h
@@ -10,7 +10,9 @@
#include "base/android/jni_weak_ref.h"
#include "base/bind.h"
#include "base/memory/ref_counted.h"
+#include "ui/android/cursor_type.h"
#include "ui/android/ui_android_export.h"
+#include "ui/gfx/android/java_bitmap.h"
Jinsuk Kim 2017/05/17 04:49:50 What is this included for? If for SkBitmap then di
jaebaek 2017/05/18 01:44:29 Done.
#include "ui/gfx/geometry/rect_f.h"
namespace cc {
@@ -133,6 +135,9 @@ class UI_ANDROID_EXPORT ViewAndroid {
bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext,
const base::android::JavaRef<jobject>& jimage);
+ void OnCursorChanged(CursorType type,
+ const SkBitmap& custom_image,
+ const gfx::Point& hotspot);
void OnBackgroundColorChanged(unsigned int color);
void OnTopControlsChanged(float top_controls_offset,
float top_content_offset);

Powered by Google App Engine
This is Rietveld 408576698