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

Unified Diff: ash/wm/window_util.cc

Issue 10540091: Rename gfx::Monitor to gfx::Display (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
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 9b0da7855405922162aa09bc0193c055117fc54d..5ac2f118c072ec274cf2aab76eefc38fb08c54fc 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -12,7 +12,7 @@
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include "ui/base/ui_base_types.h"
-#include "ui/gfx/monitor.h"
+#include "ui/gfx/display.h"
#include "ui/gfx/screen.h"
namespace ash {
@@ -94,8 +94,8 @@ void RestoreWindow(aura::Window* window) {
}
void CenterWindow(aura::Window* window) {
- const gfx::Monitor monitor = gfx::Screen::GetMonitorNearestWindow(window);
- gfx::Rect center = monitor.work_area().Center(window->bounds().size());
+ const gfx::Display display = gfx::Screen::GetMonitorNearestWindow(window);
+ gfx::Rect center = display.work_area().Center(window->bounds().size());
window->SetBounds(center);
}

Powered by Google App Engine
This is Rietveld 408576698