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

Issue 9764008: Makes the launcher auto-hide for maximized windows. This turned out to (Closed)

Created:
8 years, 9 months ago by sky
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Makes the launcher auto-hide for maximized windows. This turned out to be a bit icky for a handful of reasons. In particular it means the work area changes after going maximized so that you can't assume maximized windows get the work area bounds. This makes for some ordering dependencies. I've had to expose the bounds for maximized windows (and non-maximized windows). The code feels a bit messy in a number of places right now. In particular there a handful of places (in testing code) mucking with work area insets. We don't want that as it generally doesn't do the right thing anymore. BUG=116070 118671 TEST=covered by tests, but all see bugs. R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=127904

Patch Set 1 #

Patch Set 2 : Add null checks and cleanup #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -328 lines) Patch
M ash/launcher/launcher.h View 1 4 chunks +25 lines, -1 line 0 comments Download
M ash/launcher/launcher.cc View 1 7 chunks +98 lines, -14 lines 2 comments Download
M ash/screen_ash.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ash/screen_ash.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ash/shell.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/shell_unittest.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M ash/wm/base_layout_manager.cc View 4 chunks +19 lines, -10 lines 0 comments Download
M ash/wm/base_layout_manager_unittest.cc View 5 chunks +20 lines, -17 lines 0 comments Download
M ash/wm/shelf_layout_manager.h View 1 4 chunks +71 lines, -21 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 3 chunks +115 lines, -59 lines 0 comments Download
M ash/wm/shelf_layout_manager_unittest.cc View 4 chunks +18 lines, -14 lines 0 comments Download
M ash/wm/workspace/frame_maximize_button.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/workspace/managed_workspace.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/workspace/managed_workspace.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/wm/workspace/maximized_workspace.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/workspace/maximized_workspace.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M ash/wm/workspace/snap_sizer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace.h View 4 chunks +0 lines, -12 lines 0 comments Download
M ash/wm/workspace/workspace.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 3 chunks +5 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 3 chunks +38 lines, -34 lines 0 comments Download
M ash/wm/workspace/workspace_manager.h View 1 5 chunks +3 lines, -15 lines 0 comments Download
M ash/wm/workspace/workspace_manager.cc View 9 chunks +50 lines, -44 lines 0 comments Download
M ash/wm/workspace/workspace_manager_unittest.cc View 7 chunks +77 lines, -55 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
sky
8 years, 9 months ago (2012-03-21 03:55:05 UTC) #1
Ben Goodger (Google)
8 years, 9 months ago (2012-03-21 05:16:50 UTC) #2
LGTM

like you, i feel a bit icky. we should revisit this in 20.

http://codereview.chromium.org/9764008/diff/2001/ash/launcher/launcher.cc
File ash/launcher/launcher.cc (right):

http://codereview.chromium.org/9764008/diff/2001/ash/launcher/launcher.cc#new...
ash/launcher/launcher.cc:40: public views::AccessiblePaneView{
you lost a space here

http://codereview.chromium.org/9764008/diff/2001/ash/launcher/launcher.cc#new...
ash/launcher/launcher.cc:235: int alpha = animation->CurrentValueBetween(0,
128);
kOnstant

Powered by Google App Engine
This is Rietveld 408576698