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

Unified Diff: services/ui/ws/window_server.cc

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: early return -> braces and comment Created 3 years, 7 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: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 3a46d4db3178b08b44c7b33ad70d372c6f0da0c3..fa3ade442d8d11a04c3407d42800467d6605e607 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -599,7 +599,7 @@ void WindowServer::UpdateNativeCursorFromMouseLocation(ServerWindow* window) {
EventDispatcher* event_dispatcher =
display_root->window_manager_state()->event_dispatcher();
event_dispatcher->UpdateCursorProviderByLastKnownLocation();
- display_root->display()->UpdateNativeCursor(
+ display_root->window_manager_state()->cursor_state().SetCurrentWindowCursor(
event_dispatcher->GetCurrentMouseCursor());
}
}
@@ -616,7 +616,7 @@ void WindowServer::UpdateNativeCursorIfOver(ServerWindow* window) {
return;
event_dispatcher->UpdateNonClientAreaForCurrentWindow();
- display_root->display()->UpdateNativeCursor(
+ display_root->window_manager_state()->cursor_state().SetCurrentWindowCursor(
event_dispatcher->GetCurrentMouseCursor());
}

Powered by Google App Engine
This is Rietveld 408576698