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

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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: 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 6e8ca14a421a5a729f2a2af57c3b8458ef08f10f..588ead4c92a91733b9a5d33700884699816df5b2 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -2326,6 +2326,16 @@ void WindowTree::WmSetGlobalOverrideCursor(
window_manager_state_->cursor_state().SetGlobalOverrideCursor(cursor);
}
+void WindowTree::WmMoveCursorToScreenLocationInPixels(
+ const gfx::Point& screen_pixel_location) {
+ DCHECK(window_manager_state_);
+ // Here, I need to go from a screen location to a display location?
+ //
+ // TODO(erg): This is all wrong, I need to resolve this to work in the
+ // multi-display case.
+ window_manager_state_->SetCursorLocation(screen_pixel_location);
+}
+
void WindowTree::OnWmCreatedTopLevelWindow(uint32_t change_id,
Id transport_window_id) {
ServerWindow* window =

Powered by Google App Engine
This is Rietveld 408576698