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

Unified Diff: ash/screen_ash.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/screen_ash.h ('k') | ash/screensaver/screensaver_view.cc » ('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 71df546efd0a8e0ea53c25fef932d3f1b6ab400d..e444ebfd40f4c5ddcef4180b6a9d65f7f59736c6 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -32,7 +32,7 @@ gfx::Rect ScreenAsh::GetMaximizedWindowBounds(aura::Window* window) {
if (window->GetRootWindow() == Shell::GetPrimaryRootWindow())
return Shell::GetInstance()->shelf()->GetMaximizedWindowBounds(window);
else
- return gfx::Screen::GetMonitorNearestWindow(window).bounds();
+ return gfx::Screen::GetDisplayNearestWindow(window).bounds();
}
// static
@@ -40,7 +40,7 @@ gfx::Rect ScreenAsh::GetUnmaximizedWorkAreaBounds(aura::Window* window) {
if (window->GetRootWindow() == Shell::GetPrimaryRootWindow())
return Shell::GetInstance()->shelf()->GetUnmaximizedWorkAreaBounds(window);
else
- return gfx::Screen::GetMonitorNearestWindow(window).work_area();
+ return gfx::Screen::GetDisplayNearestWindow(window).work_area();
}
gfx::Point ScreenAsh::GetCursorScreenPoint() {
@@ -54,20 +54,20 @@ gfx::NativeWindow ScreenAsh::GetWindowAtCursorScreenPoint() {
return Shell::GetRootWindowAt(point)->GetTopWindowContainingPoint(point);
}
-int ScreenAsh::GetNumMonitors() {
- return GetMonitorManager()->GetNumMonitors();
+int ScreenAsh::GetNumDisplays() {
+ return GetMonitorManager()->GetNumDisplays();
}
-gfx::Display ScreenAsh::GetMonitorNearestWindow(gfx::NativeView window) const {
- return GetMonitorManager()->GetMonitorNearestWindow(window);
+gfx::Display ScreenAsh::GetDisplayNearestWindow(gfx::NativeView window) const {
+ return GetMonitorManager()->GetDisplayNearestWindow(window);
}
-gfx::Display ScreenAsh::GetMonitorNearestPoint(const gfx::Point& point) const {
- return GetMonitorManager()->GetMonitorNearestPoint(point);
+gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const {
+ return GetMonitorManager()->GetDisplayNearestPoint(point);
}
-gfx::Display ScreenAsh::GetPrimaryMonitor() const {
- return GetMonitorManager()->GetMonitorAt(0);
+gfx::Display ScreenAsh::GetPrimaryDisplay() const {
+ return GetMonitorManager()->GetDisplayAt(0);
}
} // namespace ash
« no previous file with comments | « ash/screen_ash.h ('k') | ash/screensaver/screensaver_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698