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

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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Change ConvertScreenInPixelsToDIP in WTHMus. 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_manager_state.cc
diff --git a/services/ui/ws/window_manager_state.cc b/services/ui/ws/window_manager_state.cc
index a36a9b1f252662b0457bd0507bbff40b44787f85..ef349b28dd7267b8c93db37f8fa07c07a8fe0763 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& display_dips,
+ int64_t display_id) {
+ event_dispatcher()->SetMousePointerDisplayLocation(display_dips, display_id);
+ UpdateNativeCursorFromDispatcher();
sky 2017/06/01 22:13:20 Don't you also need to call through to the platfor
Elliot Glaysher 2017/06/01 23:05:42 Done.
+}
+
void WindowManagerState::SetDragDropSourceWindow(
DragSource* drag_source,
ServerWindow* window,

Powered by Google App Engine
This is Rietveld 408576698