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

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: Merge with tot 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
« no previous file with comments | « components/mus/ws/window_tree.cc ('k') | ui/views/mus/screen_mus_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/screen_mus.cc
diff --git a/ui/views/mus/screen_mus.cc b/ui/views/mus/screen_mus.cc
index 67aa2b77b0aed6db8ef8e38f444622a35f593c68..44a6df724634deb7635493fb7ec7155b213abbb6 100644
--- a/ui/views/mus/screen_mus.cc
+++ b/ui/views/mus/screen_mus.cc
@@ -80,7 +80,8 @@ namespace views {
ScreenMus::ScreenMus(ScreenMusDelegate* delegate)
: delegate_(delegate),
primary_display_index_(0),
- display_manager_observer_binding_(this) {}
+ display_manager_observer_binding_(this) {
+}
ScreenMus::~ScreenMus() {}
@@ -161,8 +162,14 @@ void ScreenMus::ProcessDisplayChanged(const display::Display& changed_display,
}
gfx::Point ScreenMus::GetCursorScreenPoint() {
- NOTIMPLEMENTED();
- return gfx::Point();
+ if (!delegate_) {
+ // TODO(erg): If we need the cursor point in the window manager, we'll need
+ // to make |delegate_| required. It only recently changed to be optional.
+ NOTIMPLEMENTED();
+ return gfx::Point();
+ }
+
+ return delegate_->GetCursorScreenPoint();
}
gfx::NativeWindow ScreenMus::GetWindowUnderCursor() {
« no previous file with comments | « components/mus/ws/window_tree.cc ('k') | ui/views/mus/screen_mus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698