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

Unified Diff: ui/android/cursor_type.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/cursor_type.h
diff --git a/ui/android/cursor_type.h b/ui/android/cursor_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d79308935574e12ba83c7b34d478cb38cabbf60
--- /dev/null
+++ b/ui/android/cursor_type.h
@@ -0,0 +1,44 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_ANDROID_CURSOR_TYPE_H_
+#define UI_ANDROID_CURSOR_TYPE_H_
+
+namespace ui {
+
+// This file contains a list of CursorType's usable by ViewAndroidDelegate,
Jinsuk Kim 2017/05/17 04:49:50 Remove the description ViewAndroidDelegate as it m
jaebaek 2017/05/18 01:44:28 Done.
+// providing a direct mapping to and from their corresponding
+// blink::WebCursorInfo types.
+//
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base
aelias_OOO_until_Jul13 2017/05/17 04:47:15 Can you add this annotation to WebCursorInfo::type
jaebaek 2017/05/18 01:44:28 Done.
+enum CursorType {
+ CURSOR_TYPE_CUSTOM,
+ CURSOR_TYPE_NULL,
+ CURSOR_TYPE_ARROW,
+ CURSOR_TYPE_CONTEXT_MENU,
+ CURSOR_TYPE_HAND,
+ CURSOR_TYPE_HELP,
+ CURSOR_TYPE_WAIT,
+ CURSOR_TYPE_CELL,
+ CURSOR_TYPE_CROSSHAIR,
+ CURSOR_TYPE_TEXT,
+ CURSOR_TYPE_VERTICAL_TEXT,
+ CURSOR_TYPE_ALIAS,
+ CURSOR_TYPE_COPY,
+ CURSOR_TYPE_NO_DROP,
+ CURSOR_TYPE_ALL_SCROLL,
+ CURSOR_TYPE_HORIZONTAL_DOUBLE_ARROW,
+ CURSOR_TYPE_VERTICAL_DOUBLE_ARROW,
+ CURSOR_TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW,
+ CURSOR_TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW,
+ CURSOR_TYPE_ZOOM_IN,
+ CURSOR_TYPE_ZOOM_OUT,
+ CURSOR_TYPE_GRAB,
+ CURSOR_TYPE_GRABBING
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_ANDROID_CURSOR_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698