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

Unified Diff: ash/mus/screen_mus.cc

Issue 2626453002: Standardize Screen::GetCursorScreenPoint() on Env::last_mouse_location (Closed)
Patch Set: explicit Created 3 years, 11 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: ash/mus/screen_mus.cc
diff --git a/ash/mus/screen_mus.cc b/ash/mus/screen_mus.cc
index 312eb9d6505ed29473565263396008d7b88e35f9..f8c15862c0ab17dd8b14dcf8ce7d2f78ff3ba444 100644
--- a/ash/mus/screen_mus.cc
+++ b/ash/mus/screen_mus.cc
@@ -4,6 +4,7 @@
#include "ash/mus/screen_mus.h"
+#include "ui/aura/env.h"
#include "ui/aura/mus/window_tree_host_mus.h"
#include "ui/aura/window.h"
@@ -23,4 +24,8 @@ display::Display ScreenMus::GetDisplayNearestWindow(
return iter == display_list().displays().end() ? GetPrimaryDisplay() : *iter;
}
+gfx::Point ScreenMus::GetCursorScreenPoint() {
+ return aura::Env::GetInstance()->last_mouse_location();
+}
+
} // namespace ash
« no previous file with comments | « ash/mus/screen_mus.h ('k') | ui/views/mus/mus_client.h » ('j') | ui/views/mus/mus_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698