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/base/cursor/image_cursors.cc

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
« no previous file with comments | « ui/base/cursor/cursors_aura.cc ('k') | ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/image_cursors.cc
diff --git a/ui/base/cursor/image_cursors.cc b/ui/base/cursor/image_cursors.cc
index 32ff66136497bbec28fb3e54baf6e23014e52905..6b6eea732ff671075e217641152a86f3f92979d2 100644
--- a/ui/base/cursor/image_cursors.cc
+++ b/ui/base/cursor/image_cursors.cc
@@ -20,45 +20,43 @@ namespace ui {
namespace {
-const int kImageCursorIds[] = {
- kCursorNull,
- kCursorPointer,
- kCursorNoDrop,
- kCursorNotAllowed,
- kCursorCopy,
- kCursorHand,
- kCursorMove,
- kCursorNorthEastResize,
- kCursorSouthWestResize,
- kCursorSouthEastResize,
- kCursorNorthWestResize,
- kCursorNorthResize,
- kCursorSouthResize,
- kCursorEastResize,
- kCursorWestResize,
- kCursorIBeam,
- kCursorAlias,
- kCursorCell,
- kCursorContextMenu,
- kCursorCross,
- kCursorHelp,
- kCursorVerticalText,
- kCursorZoomIn,
- kCursorZoomOut,
- kCursorRowResize,
- kCursorColumnResize,
- kCursorEastWestResize,
- kCursorNorthSouthResize,
- kCursorNorthEastSouthWestResize,
- kCursorNorthWestSouthEastResize,
- kCursorGrab,
- kCursorGrabbing,
+const CursorType kImageCursorIds[] = {
+ CursorType::kNull,
+ CursorType::kPointer,
+ CursorType::kNoDrop,
+ CursorType::kNotAllowed,
+ CursorType::kCopy,
+ CursorType::kHand,
+ CursorType::kMove,
+ CursorType::kNorthEastResize,
+ CursorType::kSouthWestResize,
+ CursorType::kSouthEastResize,
+ CursorType::kNorthWestResize,
+ CursorType::kNorthResize,
+ CursorType::kSouthResize,
+ CursorType::kEastResize,
+ CursorType::kWestResize,
+ CursorType::kIBeam,
+ CursorType::kAlias,
+ CursorType::kCell,
+ CursorType::kContextMenu,
+ CursorType::kCross,
+ CursorType::kHelp,
+ CursorType::kVerticalText,
+ CursorType::kZoomIn,
+ CursorType::kZoomOut,
+ CursorType::kRowResize,
+ CursorType::kColumnResize,
+ CursorType::kEastWestResize,
+ CursorType::kNorthSouthResize,
+ CursorType::kNorthEastSouthWestResize,
+ CursorType::kNorthWestSouthEastResize,
+ CursorType::kGrab,
+ CursorType::kGrabbing,
};
-const int kAnimatedCursorIds[] = {
- kCursorWait,
- kCursorProgress
-};
+const CursorType kAnimatedCursorIds[] = {CursorType::kWait,
+ CursorType::kProgress};
} // namespace
« no previous file with comments | « ui/base/cursor/cursors_aura.cc ('k') | ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698