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

Unified Diff: services/ui/ws/event_dispatcher.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 | « services/ui/ws/drag_controller_unittest.cc ('k') | services/ui/ws/platform_display_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_dispatcher.cc
diff --git a/services/ui/ws/event_dispatcher.cc b/services/ui/ws/event_dispatcher.cc
index a4710dfa3d945d2056eb84f9d6bcbb12d27c9dcc..9edd3bc90b7ef2edb788d2564a9a61b29822aee6 100644
--- a/services/ui/ws/event_dispatcher.cc
+++ b/services/ui/ws/event_dispatcher.cc
@@ -91,13 +91,13 @@ ui::mojom::CursorType EventDispatcher::GetCurrentMouseCursor() const {
return drag_controller_->current_cursor();
if (!mouse_cursor_source_window_)
- return ui::mojom::CursorType::POINTER;
+ return ui::mojom::CursorType::kPointer;
if (mouse_cursor_in_non_client_area_)
return mouse_cursor_source_window_->non_client_cursor();
const ServerWindow* window = GetWindowForMouseCursor();
- return window ? window->cursor() : ui::mojom::CursorType::POINTER;
+ return window ? window->cursor() : ui::mojom::CursorType::kPointer;
}
bool EventDispatcher::SetCaptureWindow(ServerWindow* window,
« no previous file with comments | « services/ui/ws/drag_controller_unittest.cc ('k') | services/ui/ws/platform_display_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698