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

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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Thread to the PlatformWindow. 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_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index f6b07565db20bd0055f4b70277c7fd4e11e15e6f..5b7166a65fb5e5309f6f7e0959dd5edcb03a706a 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -2367,6 +2367,12 @@ void WindowTree::WmSetGlobalOverrideCursor(
window_manager_state_->cursor_state().SetGlobalOverrideCursor(cursor);
}
+void WindowTree::WmMoveCursorToDisplayLocation(const gfx::Point& display_pixels,
+ int64_t display_id) {
+ DCHECK(window_manager_state_);
+ window_manager_state_->SetCursorLocation(display_pixels, display_id);
+}
+
void WindowTree::OnWmCreatedTopLevelWindow(uint32_t change_id,
Id transport_window_id) {
ServerWindow* window =

Powered by Google App Engine
This is Rietveld 408576698