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

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

Issue 2830703003: [views-mus] Support custom cursors. (Closed)
Patch Set: fix cast_shell_linux 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/window_server.h ('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 d012b886dc2f0bc50ecc2246398ff6bcdc5aef36..f48149ee5dd483917c1e429a9702f8da3553e522 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -417,11 +417,10 @@ void WindowServer::ProcessWindowDeleted(ServerWindow* window) {
pair.second->ProcessWindowDeleted(window, IsOperationSource(pair.first));
}
-void WindowServer::ProcessWillChangeWindowPredefinedCursor(
- ServerWindow* window,
- mojom::CursorType cursor_id) {
+void WindowServer::ProcessWillChangeWindowCursor(ServerWindow* window,
+ const ui::CursorData& cursor) {
for (auto& pair : tree_map_) {
- pair.second->ProcessCursorChanged(window, cursor_id,
+ pair.second->ProcessCursorChanged(window, cursor,
IsOperationSource(pair.first));
}
}
@@ -750,19 +749,19 @@ void WindowServer::OnWindowVisibilityChanged(ServerWindow* window) {
window);
}
-void WindowServer::OnWindowPredefinedCursorChanged(
- ServerWindow* window,
- mojom::CursorType cursor_id) {
+void WindowServer::OnWindowCursorChanged(ServerWindow* window,
+ const ui::CursorData& cursor) {
if (in_destructor_)
return;
- ProcessWillChangeWindowPredefinedCursor(window, cursor_id);
+ ProcessWillChangeWindowCursor(window, cursor);
UpdateNativeCursorIfOver(window);
}
-void WindowServer::OnWindowNonClientCursorChanged(ServerWindow* window,
- mojom::CursorType cursor_id) {
+void WindowServer::OnWindowNonClientCursorChanged(
+ ServerWindow* window,
+ const ui::CursorData& cursor) {
if (in_destructor_)
return;
« no previous file with comments | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698