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

Unified Diff: ash/wm/workspace/frame_maximize_button.cc

Issue 9764008: Makes the launcher auto-hide for maximized windows. This turned out to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add null checks and cleanup Created 8 years, 9 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
Index: ash/wm/workspace/frame_maximize_button.cc
diff --git a/ash/wm/workspace/frame_maximize_button.cc b/ash/wm/workspace/frame_maximize_button.cc
index 69e1b8567a365eea173df73b60dbd2e0042ddabe..af6f5c979cb3593e594339b4d338680ecdc40121 100644
--- a/ash/wm/workspace/frame_maximize_button.cc
+++ b/ash/wm/workspace/frame_maximize_button.cc
@@ -4,6 +4,7 @@
#include "ash/wm/workspace/frame_maximize_button.h"
+#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/wm/property_util.h"
#include "ash/launcher/launcher.h"
@@ -279,7 +280,7 @@ gfx::Rect FrameMaximizeButton::BoundsForType(SnapType type) const {
case SNAP_RIGHT:
return snap_sizer_->target_bounds();
case SNAP_MAXIMIZE:
- return gfx::Screen::GetMonitorWorkAreaNearestWindow(window);
+ return ScreenAsh::GetMaximizedWindowBounds(window);
case SNAP_MINIMIZE: {
Launcher* launcher = Shell::GetInstance()->launcher();
gfx::Rect item_rect(launcher->GetScreenBoundsOfItemIconForWindow(window));

Powered by Google App Engine
This is Rietveld 408576698