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

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

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: sky comments 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
« no previous file with comments | « services/ui/ws/window_manager_state_unittest.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 50ed7c452b2d7d8b592622873dc165421f9fb8c8..742e71c24ce633dc6865cb5ef0faf10f9838b470 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());
}
« no previous file with comments | « services/ui/ws/window_manager_state_unittest.cc ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698