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

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

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And fix chromeos. 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/screen_mus.cc
diff --git a/ui/views/mus/screen_mus.cc b/ui/views/mus/screen_mus.cc
index d22499cc4b5e2dc03ee3801f10704399d576a39f..65a9147eacbfc433c80db44e7151b805671cc7cc 100644
--- a/ui/views/mus/screen_mus.cc
+++ b/ui/views/mus/screen_mus.cc
@@ -4,6 +4,7 @@
#include "ui/views/mus/screen_mus.h"
+#include "base/threading/thread_restrictions.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
@@ -143,8 +144,10 @@ void ScreenMus::ProcessDisplayChanged(const gfx::Display& changed_display,
}
gfx::Point ScreenMus::GetCursorScreenPoint() {
- NOTIMPLEMENTED();
- return gfx::Point();
+ base::ThreadRestrictions::ScopedAllowWait allow_wait;
+ mojo::PointPtr p;
+ display_manager_->GetCursorScreenPoint(&p);
+ return p.To<gfx::Point>();
}
gfx::NativeWindow ScreenMus::GetWindowUnderCursor() {
« components/mus/public/interfaces/display.mojom ('K') | « components/mus/ws/window_manager_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698