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

Unified Diff: components/mus/ws/window_manager_state.cc

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't crash on empty roots. Created 4 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
Index: components/mus/ws/window_manager_state.cc
diff --git a/components/mus/ws/window_manager_state.cc b/components/mus/ws/window_manager_state.cc
index c81bb8cb86b78b4d1ccfc2e6e0649a9e30cc96f3..0bb1d0a1159e3b2d1793e09f3f0e71b75abb5598 100644
--- a/components/mus/ws/window_manager_state.cc
+++ b/components/mus/ws/window_manager_state.cc
@@ -165,6 +165,10 @@ void WindowManagerState::OnWillDestroyTree(WindowTree* tree) {
: mojom::EventResult::UNHANDLED);
}
+gfx::Point WindowManagerState::GetCursorLocation() const {
+ return event_dispatcher_.mouse_pointer_last_location();
+}
+
WindowManagerState::WindowManagerState(Display* display,
PlatformDisplay* platform_display,
cc::SurfaceId surface_id,

Powered by Google App Engine
This is Rietveld 408576698