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

Unified Diff: mash/simple_wm/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
Index: mash/simple_wm/move_event_handler.cc
diff --git a/mash/simple_wm/move_event_handler.cc b/mash/simple_wm/move_event_handler.cc
index 572e9c68ffedbae87ba36f6f8f8751366d8f8800..99582edc5f7d80d0f5cf1870c505018e4535cd76 100644
--- a/mash/simple_wm/move_event_handler.cc
+++ b/mash/simple_wm/move_event_handler.cc
@@ -18,23 +18,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 | « extensions/shell/browser/shell_desktop_controller_aura.cc ('k') | remoting/host/chromeos/mouse_cursor_monitor_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698