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

Unified Diff: services/ui/public/interfaces/cursor/cursor.mojom

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: OK, it can't be explicit for mac. Created 3 years, 8 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: services/ui/public/interfaces/cursor/cursor.mojom
diff --git a/services/ui/public/interfaces/cursor/cursor.mojom b/services/ui/public/interfaces/cursor/cursor.mojom
index 08a88021df705ea96a9c706fe1ff27672e2add4e..30becc8b901efbaa68b62d6b9439d2570549e451 100644
--- a/services/ui/public/interfaces/cursor/cursor.mojom
+++ b/services/ui/public/interfaces/cursor/cursor.mojom
@@ -11,53 +11,53 @@ import "ui/gfx/geometry/mojo/geometry.mojom";
// Standard Cursor numbers. These are the same as Chrome's ui::Cursor and
// blink's WebCursorInfo.
enum CursorType {
- // NULL is kept for compatibility with chrome declarations. In chrome code, it
- // is treated exactly like POINTER, the default pointer.
- CURSOR_NULL = 0,
- POINTER,
- CROSS,
- HAND,
- IBEAM,
- WAIT,
- HELP,
- EAST_RESIZE,
- NORTH_RESIZE,
- NORTH_EAST_RESIZE,
- NORTH_WEST_RESIZE,
- SOUTH_RESIZE,
- SOUTH_EAST_RESIZE,
- SOUTH_WEST_RESIZE,
- WEST_RESIZE,
- NORTH_SOUTH_RESIZE,
- EAST_WEST_RESIZE,
- NORTH_EAST_SOUTH_WEST_RESIZE,
- NORTH_WEST_SOUTH_EAST_RESIZE,
- COLUMN_RESIZE,
- ROW_RESIZE,
- MIDDLE_PANNING,
- EAST_PANNING,
- NORTH_PANNING,
- NORTH_EAST_PANNING,
- NORTH_WEST_PANNING,
- SOUTH_PANNING,
- SOUTH_EAST_PANNING,
- SOUTH_WEST_PANNING,
- WEST_PANNING,
- MOVE,
- VERTICAL_TEXT,
- CELL,
- CONTEXT_MENU,
- ALIAS,
- PROGRESS,
- NO_DROP,
- COPY,
- NONE,
- NOT_ALLOWED,
- ZOOM_IN,
- ZOOM_OUT,
- GRAB,
- GRABBING,
- CUSTOM
+ // kNull is kept for compatibility with chrome declarations. In chrome code,
+ // it is treated exactly like kPointer, the default pointer.
+ kNull = 0,
+ kPointer,
+ kCross,
+ kHand,
+ kIBeam,
+ kWait,
+ kHelp,
+ kEastResize,
+ kNorthResize,
+ kNorthEastResize,
+ kNorthWestResize,
+ kSouthResize,
+ kSouthEastResize,
+ kSouthWestResize,
+ kWestResize,
+ kNorthSouthResize,
+ kEastWestResize,
+ kNorthEastSouthWestResize,
+ kNorthWestSouthEastResize,
+ kColumnResize,
+ kRowResize,
+ kMiddlePanning,
+ kEastPanning,
+ kNorthPanning,
+ kNorthEastPanning,
+ kNorthWestPanning,
+ kSouthPanning,
+ kSouthEastPanning,
+ kSouthWestPanning,
+ kWestPanning,
+ kMove,
+ kVerticalText,
+ kCell,
+ kContextMenu,
+ kAlias,
+ kProgress,
+ kNoDrop,
+ kCopy,
+ kNone,
+ kNotAllowed,
+ kZoomIn,
+ kZoomOut,
+ kGrab,
+ kGrabbing,
+ kCustom
};
// A description of a cursor.
« no previous file with comments | « remoting/host/chromeos/mouse_cursor_monitor_aura.cc ('k') | services/ui/public/interfaces/cursor/cursor_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698