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

Unified Diff: ash/wm/base_layout_manager.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/touch/touch_observer_hud.cc ('k') | ash/wm/base_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/base_layout_manager.cc
diff --git a/ash/wm/base_layout_manager.cc b/ash/wm/base_layout_manager.cc
index d9f90a65d0a161fe971a720754838d7de5ef76b2..4e39fff824df1557cc545552dfbeadcadd276f34 100644
--- a/ash/wm/base_layout_manager.cc
+++ b/ash/wm/base_layout_manager.cc
@@ -105,7 +105,7 @@ void BaseLayoutManager::SetChildBounds(aura::Window* child,
if (wm::IsWindowMaximized(child))
child_bounds = ScreenAsh::GetMaximizedWindowBounds(child);
else if (wm::IsWindowFullscreen(child))
- child_bounds = gfx::Screen::GetMonitorNearestWindow(child).bounds();
+ child_bounds = gfx::Screen::GetDisplayNearestWindow(child).bounds();
SetChildBoundsDirect(child, child_bounds);
}
@@ -198,7 +198,7 @@ void BaseLayoutManager::UpdateBoundsFromShowState(aura::Window* window,
// Don't animate the full-screen window transition.
// TODO(jamescook): Use animation here. Be sure the lock screen works.
SetChildBoundsDirect(
- window, gfx::Screen::GetMonitorNearestWindow(window).bounds());
+ window, gfx::Screen::GetDisplayNearestWindow(window).bounds());
break;
default:
@@ -235,11 +235,11 @@ void BaseLayoutManager::AdjustWindowSizesForScreenChange() {
SetChildBoundsDirect(window, ScreenAsh::GetMaximizedWindowBounds(window));
} else if (wm::IsWindowFullscreen(window)) {
SetChildBoundsDirect(
- window, gfx::Screen::GetMonitorNearestWindow(window).bounds());
+ window, gfx::Screen::GetDisplayNearestWindow(window).bounds());
} else {
// The work area may be smaller than the full screen.
gfx::Rect monitor_rect =
- gfx::Screen::GetMonitorNearestWindow(window).work_area();
+ gfx::Screen::GetDisplayNearestWindow(window).work_area();
// Put as much of the window as possible within the monitor area.
window->SetBounds(window->bounds().AdjustToFit(monitor_rect));
}
« no previous file with comments | « ash/touch/touch_observer_hud.cc ('k') | ash/wm/base_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698