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

Unified Diff: ash/wm/window_util.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/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 74c970f631ac85b13238c3bb52e1a8e537617d2c..3260a69ac64c761ae9cfd09c2a8ba0ef65aaafbb 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -101,7 +101,8 @@ void RestoreWindow(aura::Window* window) {
}
void CenterWindow(aura::Window* window) {
- const gfx::Display display = gfx::Screen::GetDisplayNearestWindow(window);
+ const gfx::Display display =
+ Shell::GetAshScreen()->GetDisplayNearestWindow(window);
gfx::Rect center = display.work_area().Center(window->bounds().size());
window->SetBounds(center);
}

Powered by Google App Engine
This is Rietveld 408576698