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

Unified Diff: ash/wm/window_util.cc

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/window_resizer.cc ('k') | ash/wm/workspace/maximized_workspace.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 833e02c0271e1e527e49e48f1fd9c8427ced24ff..17f60344b11ddb5b957ea4dc752e34e2047fe7d7 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -94,7 +94,7 @@ void RestoreWindow(aura::Window* window) {
}
void CenterWindow(aura::Window* window) {
- const gfx::Display display = gfx::Screen::GetMonitorNearestWindow(window);
+ const gfx::Display display = gfx::Screen::GetDisplayNearestWindow(window);
gfx::Rect center = display.work_area().Center(window->bounds().size());
window->SetBounds(center);
}
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/maximized_workspace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698