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

Unified Diff: services/ui/ws/window_manager_state.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
« no previous file with comments | « services/ui/ws/window_manager_state.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_manager_state.cc
diff --git a/services/ui/ws/window_manager_state.cc b/services/ui/ws/window_manager_state.cc
index a36a9b1f252662b0457bd0507bbff40b44787f85..6435f36843fc129b19bda6506b4682b6f7de4e52 100644
--- a/services/ui/ws/window_manager_state.cc
+++ b/services/ui/ws/window_manager_state.cc
@@ -192,6 +192,12 @@ void WindowManagerState::ReleaseCaptureBlockedByAnyModalWindow() {
event_dispatcher_.ReleaseCaptureBlockedByAnyModalWindow();
}
+void WindowManagerState::SetCursorLocation(
+ const gfx::Point& screen_pixel_location) {
+ event_dispatcher()->SetMousePointerDisplayLocation(screen_pixel_location, -1);
Elliot Glaysher 2017/05/31 23:47:32 This here is obviously incorrect in the multi-disp
riajiang 2017/06/01 17:06:07 In WindowTreeHost::MoveCursorToInternal, can we co
+ UpdateNativeCursorFromDispatcher();
+}
+
void WindowManagerState::SetDragDropSourceWindow(
DragSource* drag_source,
ServerWindow* window,
« no previous file with comments | « services/ui/ws/window_manager_state.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698