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

Unified Diff: ash/mus/move_event_handler.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 | « ash/extended_desktop_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/move_event_handler.cc
diff --git a/ash/mus/move_event_handler.cc b/ash/mus/move_event_handler.cc
index b0ba9cc873b81f9720953569eb7c9508a8ba1dbd..6c89fa9f0554cc817484b9f4797a1d5ce81442d3 100644
--- a/ash/mus/move_event_handler.cc
+++ b/ash/mus/move_event_handler.cc
@@ -31,23 +31,23 @@ namespace {
ui::mojom::CursorType CursorForWindowComponent(int window_component) {
switch (window_component) {
case HTBOTTOM:
- return ui::mojom::CursorType::SOUTH_RESIZE;
+ return ui::mojom::CursorType::kSouthResize;
case HTBOTTOMLEFT:
- return ui::mojom::CursorType::SOUTH_WEST_RESIZE;
+ return ui::mojom::CursorType::kSouthWestResize;
case HTBOTTOMRIGHT:
- return ui::mojom::CursorType::SOUTH_EAST_RESIZE;
+ return ui::mojom::CursorType::kSouthEastResize;
case HTLEFT:
- return ui::mojom::CursorType::WEST_RESIZE;
+ return ui::mojom::CursorType::kWestResize;
case HTRIGHT:
- return ui::mojom::CursorType::EAST_RESIZE;
+ return ui::mojom::CursorType::kEastResize;
case HTTOP:
- return ui::mojom::CursorType::NORTH_RESIZE;
+ return ui::mojom::CursorType::kNorthResize;
case HTTOPLEFT:
- return ui::mojom::CursorType::NORTH_WEST_RESIZE;
+ return ui::mojom::CursorType::kNorthWestResize;
case HTTOPRIGHT:
- return ui::mojom::CursorType::NORTH_EAST_RESIZE;
+ return ui::mojom::CursorType::kNorthEastResize;
default:
- return ui::mojom::CursorType::CURSOR_NULL;
+ return ui::mojom::CursorType::kNull;
}
}
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698