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

Unified Diff: ash/wm/coordinate_conversion.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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 | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/coordinate_conversion.cc
diff --git a/ash/wm/coordinate_conversion.cc b/ash/wm/coordinate_conversion.cc
index 0033d3359bd6eca6ebef0d657974b028d4177c01..012ca205661d48c79571d7196b52c3af51a608f5 100644
--- a/ash/wm/coordinate_conversion.cc
+++ b/ash/wm/coordinate_conversion.cc
@@ -18,7 +18,8 @@ namespace ash {
namespace wm {
aura::RootWindow* GetRootWindowAt(const gfx::Point& point) {
- const gfx::Display& display = gfx::Screen::GetDisplayNearestPoint(point);
+ const gfx::Display& display =
+ Shell::GetScreen()->GetDisplayNearestPoint(point);
// TODO(yusukes): Move coordinate_conversion.cc and .h to ui/aura/ once
// GetRootWindowForDisplayId() is moved to aura::Env.
return Shell::GetInstance()->display_controller()->
@@ -26,7 +27,7 @@ aura::RootWindow* GetRootWindowAt(const gfx::Point& point) {
}
aura::RootWindow* GetRootWindowMatching(const gfx::Rect& rect) {
- const gfx::Display& display = gfx::Screen::GetDisplayMatching(rect);
+ const gfx::Display& display = Shell::GetScreen()->GetDisplayMatching(rect);
return Shell::GetInstance()->display_controller()->
GetRootWindowForDisplayId(display.id());
}
« no previous file with comments | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698