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

Unified Diff: ash/screen_ash.cc

Issue 10675011: Rename the remaining usage of Monitor to Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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/root_window_controller_unittest.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_ash.cc
diff --git a/ash/screen_ash.cc b/ash/screen_ash.cc
index e444ebfd40f4c5ddcef4180b6a9d65f7f59736c6..c98996aab728a77ba424da5b87bcd2506b649dcb 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -8,7 +8,7 @@
#include "ash/wm/shelf_layout_manager.h"
#include "base/logging.h"
#include "ui/aura/env.h"
-#include "ui/aura/monitor_manager.h"
+#include "ui/aura/display_manager.h"
#include "ui/aura/root_window.h"
#include "ui/gfx/display.h"
#include "ui/gfx/screen.h"
@@ -16,8 +16,8 @@
namespace ash {
namespace {
-aura::MonitorManager* GetMonitorManager() {
- return aura::Env::GetInstance()->monitor_manager();
+aura::DisplayManager* GetDisplayManager() {
+ return aura::Env::GetInstance()->display_manager();
}
} // namespace
@@ -55,19 +55,19 @@ gfx::NativeWindow ScreenAsh::GetWindowAtCursorScreenPoint() {
}
int ScreenAsh::GetNumDisplays() {
- return GetMonitorManager()->GetNumDisplays();
+ return GetDisplayManager()->GetNumDisplays();
}
gfx::Display ScreenAsh::GetDisplayNearestWindow(gfx::NativeView window) const {
- return GetMonitorManager()->GetDisplayNearestWindow(window);
+ return GetDisplayManager()->GetDisplayNearestWindow(window);
}
gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const {
- return GetMonitorManager()->GetDisplayNearestPoint(point);
+ return GetDisplayManager()->GetDisplayNearestPoint(point);
}
gfx::Display ScreenAsh::GetPrimaryDisplay() const {
- return GetMonitorManager()->GetDisplayAt(0);
+ return GetDisplayManager()->GetDisplayAt(0);
}
} // namespace ash
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698