summaryrefslogtreecommitdiffstats
path: root/ash/wm/workspace/frame_maximize_button.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-24 07:15:13 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-24 07:15:13 +0000
commit8ded3efe7d919bd27c3109146e4a0d47a266b01a (patch)
treea1deb19f28c19211d2e35d701ef8654cb82be0af /ash/wm/workspace/frame_maximize_button.cc
parent1fc9e80dab903b1dddf3b219c9f4fb45568e090b (diff)
downloadchromium_src-8ded3efe7d919bd27c3109146e4a0d47a266b01a.zip
chromium_src-8ded3efe7d919bd27c3109146e4a0d47a266b01a.tar.gz
chromium_src-8ded3efe7d919bd27c3109146e4a0d47a266b01a.tar.bz2
Revert 213347 "Use GetDisplayNearestWindow instead of GetDislpa..."
I suspect this broke WorkspaceManagerTest on Win8 Aura http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/8306 > Use GetDisplayNearestWindow instead of GetDislpaymatching where appropriate > This is correct way to tell on which display > the window is on as a window doesn't overlap two > displays on ash. > > BUG=none > > Review URL: https://chromiumcodereview.appspot.com/19593008 TBR=oshima@chromium.org Review URL: https://codereview.chromium.org/19668011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/workspace/frame_maximize_button.cc')
-rw-r--r--ash/wm/workspace/frame_maximize_button.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ash/wm/workspace/frame_maximize_button.cc b/ash/wm/workspace/frame_maximize_button.cc
index 683ffc0..f5ca589 100644
--- a/ash/wm/workspace/frame_maximize_button.cc
+++ b/ash/wm/workspace/frame_maximize_button.cc
@@ -597,8 +597,7 @@ FrameMaximizeButton::GetMaximizeBubbleFrameState() const {
return FRAME_STATE_FULL;
// For Left/right maximize we need to check the dimensions.
gfx::Rect bounds = frame_->GetWidget()->GetWindowBoundsInScreen();
- gfx::Rect screen = Shell::GetScreen()->GetDisplayNearestWindow(
- frame_->GetWidget()->GetNativeView()).work_area();
+ gfx::Rect screen = Shell::GetScreen()->GetDisplayMatching(bounds).work_area();
if (bounds.width() < (screen.width() * kMinSnapSizePercent) / 100)
return FRAME_STATE_NONE;
// We might still have a horizontally filled window at this point which we