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

Unified Diff: ui/views/mus/window_manager_connection.cc

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually apply the 32bit patch now that the delegate crash was fixed. 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: ui/views/mus/window_manager_connection.cc
diff --git a/ui/views/mus/window_manager_connection.cc b/ui/views/mus/window_manager_connection.cc
index cfa0a2b2322f11e0a66845b681384155f7232661..a31866b1ce0aaa8b4e48db2b3fb5fd86114d477c 100644
--- a/ui/views/mus/window_manager_connection.cc
+++ b/ui/views/mus/window_manager_connection.cc
@@ -83,6 +83,7 @@ WindowManagerConnection::WindowManagerConnection(
window_tree_connection_(nullptr) {
window_tree_connection_.reset(
mus::WindowTreeConnection::Create(this, connector_));
+ window_tree_connection_->InitializeCursorLocation();
screen_.reset(new ScreenMus(this));
screen_->Init(connector);
@@ -116,4 +117,8 @@ void WindowManagerConnection::OnWindowManagerFrameValuesChanged() {
NativeWidgetMus::NotifyFrameChanged(window_tree_connection_.get());
}
+gfx::Point WindowManagerConnection::GetCursorScreenPoint() {
+ return window_tree_connection_->GetCursorScreenPoint();
+}
+
} // namespace views
« components/mus/ws/window_manager_state.cc ('K') | « ui/views/mus/window_manager_connection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698