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

Unified Diff: ash/wm/shelf_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/wm/base_layout_manager_unittest.cc ('k') | ash/wm/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/shelf_layout_manager.cc
diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc
index e6c674aad1acbda992b84fdc1be8dfbad7bc844e..3c3246f5b5632b857e7b96669c8d312d6db59bff 100644
--- a/ash/wm/shelf_layout_manager.cc
+++ b/ash/wm/shelf_layout_manager.cc
@@ -156,7 +156,7 @@ bool ShelfLayoutManager::IsVisible() const {
gfx::Rect ShelfLayoutManager::GetMaximizedWindowBounds(
aura::Window* window) {
// TODO: needs to be multi-mon aware.
- gfx::Rect bounds(gfx::Screen::GetMonitorNearestWindow(window).bounds());
+ gfx::Rect bounds(gfx::Screen::GetDisplayNearestWindow(window).bounds());
if (auto_hide_behavior_ == SHELF_AUTO_HIDE_BEHAVIOR_DEFAULT ||
auto_hide_behavior_ == SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS) {
AdjustBoundsBasedOnAlignment(kAutoHideSize, &bounds);
@@ -169,7 +169,7 @@ gfx::Rect ShelfLayoutManager::GetMaximizedWindowBounds(
gfx::Rect ShelfLayoutManager::GetUnmaximizedWorkAreaBounds(
aura::Window* window) {
// TODO: needs to be multi-mon aware.
- gfx::Rect bounds(gfx::Screen::GetMonitorNearestWindow(window).bounds());
+ gfx::Rect bounds(gfx::Screen::GetDisplayNearestWindow(window).bounds());
int size;
if (auto_hide_behavior_ == SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS) {
size = kAutoHideSize;
@@ -209,7 +209,7 @@ gfx::Rect ShelfLayoutManager::GetIdealBounds() {
// TODO: this is wrong. Figure out what monitor shelf is on and everything
// should be based on it.
gfx::Rect bounds(
- gfx::Screen::GetMonitorNearestWindow(status_->GetNativeView()).bounds());
+ gfx::Screen::GetDisplayNearestWindow(status_->GetNativeView()).bounds());
int width = 0, height = 0;
GetShelfSize(&width, &height);
switch (alignment_) {
« no previous file with comments | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/shelf_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698