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

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 some new gfx::Screen additions 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
Index: ash/wm/coordinate_conversion.cc
diff --git a/ash/wm/coordinate_conversion.cc b/ash/wm/coordinate_conversion.cc
index 0033d3359bd6eca6ebef0d657974b028d4177c01..593f372ebe1c4ca0db95941ea4ed105fea53a695 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::GetAshScreen()->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::GetAshScreen()->GetDisplayMatching(rect);
return Shell::GetInstance()->display_controller()->
GetRootWindowForDisplayId(display.id());
}

Powered by Google App Engine
This is Rietveld 408576698