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

Unified Diff: ui/wm/core/compound_event_filter.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/views/widget/desktop_aura/x11_whole_screen_move_loop.cc ('k') | ui/wm/core/cursor_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/compound_event_filter.cc
diff --git a/ui/wm/core/compound_event_filter.cc b/ui/wm/core/compound_event_filter.cc
index 84ae29a5209f19ce0dfe051317c62962d69a1c52..cd2db9a83fe8fc2c513bbf72c7ae1c5d789e7e9d 100644
--- a/ui/wm/core/compound_event_filter.cc
+++ b/ui/wm/core/compound_event_filter.cc
@@ -68,23 +68,23 @@ gfx::NativeCursor CompoundEventFilter::CursorForWindowComponent(
int window_component) {
switch (window_component) {
case HTBOTTOM:
- return ui::kCursorSouthResize;
+ return ui::CursorType::kSouthResize;
case HTBOTTOMLEFT:
- return ui::kCursorSouthWestResize;
+ return ui::CursorType::kSouthWestResize;
case HTBOTTOMRIGHT:
- return ui::kCursorSouthEastResize;
+ return ui::CursorType::kSouthEastResize;
case HTLEFT:
- return ui::kCursorWestResize;
+ return ui::CursorType::kWestResize;
case HTRIGHT:
- return ui::kCursorEastResize;
+ return ui::CursorType::kEastResize;
case HTTOP:
- return ui::kCursorNorthResize;
+ return ui::CursorType::kNorthResize;
case HTTOPLEFT:
- return ui::kCursorNorthWestResize;
+ return ui::CursorType::kNorthWestResize;
case HTTOPRIGHT:
- return ui::kCursorNorthEastResize;
+ return ui::CursorType::kNorthEastResize;
default:
- return ui::kCursorNull;
+ return ui::CursorType::kNull;
}
}
« no previous file with comments | « ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc ('k') | ui/wm/core/cursor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698