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

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed)

Created:
4 years, 7 months ago by James Cook
Modified:
4 years, 7 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@shutdown
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Preliminary support for shelf auto-hide Shelf now collapses to light-bar when auto-hide is enabled and shows itself on mouse hover. * Observe ShelfLayoutManager for state changes and send the preferred size to the window manager via a window property. * Use mouse hover/enter/exit over the shelf widget and status area widget to trigger shelf show. This depends on a patch to shutdown the layout manager before the status area widget is destroyed to avoid processing ET_MOUSE_EXITED events mid-shutdown. TODO: Animations of widget position and opacity TODO: Update the user window work area when auto-hide enabled TODO: Track visible and maximized windows for special-case shelf opacity and visibility behaviors BUG=613212 TEST=existing ash_unittests Committed: https://crrev.com/84d491374cd8d3eef55deb09117a11b0a70b813c Cr-Commit-Position: refs/heads/master@{#396048}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : cleanup #

Total comments: 14

Patch Set 4 : rebase onto upstream patch, in_shutdown_ fix #

Patch Set 5 : review comments #

Patch Set 6 : typo #

Total comments: 4

Patch Set 7 : rebase onto upstream patch for browser_tests fix #

Patch Set 8 : review comments 2 #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -45 lines) Patch
M ash/mus/shelf_delegate_mus.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ash/mus/shelf_delegate_mus.cc View 1 2 3 4 4 chunks +17 lines, -1 line 0 comments Download
M ash/screen_util.cc View 2 chunks +11 lines, -12 lines 0 comments Download
M ash/shelf/shelf_delegate.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 2 3 7 chunks +16 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 2 3 4 5 6 7 10 chunks +73 lines, -31 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf_widget.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell/shelf_delegate_impl.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M ash/shell/shelf_delegate_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/status_area_widget.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/status_area_widget.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M ash/test/test_shelf_delegate.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/test/test_shelf_delegate.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
James Cook
msw, please take a look.
4 years, 7 months ago (2016-05-24 16:35:27 UTC) #4
msw
https://codereview.chromium.org/2007003002/diff/40001/ash/mus/shelf_delegate_mus.h File ash/mus/shelf_delegate_mus.h (right): https://codereview.chromium.org/2007003002/diff/40001/ash/mus/shelf_delegate_mus.h#newcode47 ash/mus/shelf_delegate_mus.h:47: // ShelfLayoutManagerObserver: I wonder if this should be done ...
4 years, 7 months ago (2016-05-24 20:46:55 UTC) #5
James Cook
msw, please take another look. (Apologies for the rebase, but it's only onto the previous ...
4 years, 7 months ago (2016-05-25 00:25:43 UTC) #6
msw
lgtm with minor nits https://codereview.chromium.org/2007003002/diff/100001/ash/shelf/shelf_delegate.h File ash/shelf/shelf_delegate.h (right): https://codereview.chromium.org/2007003002/diff/100001/ash/shelf/shelf_delegate.h#newcode34 ash/shelf/shelf_delegate.h:34: // Called after |shelf|'s auto-hide ...
4 years, 7 months ago (2016-05-25 01:10:34 UTC) #7
James Cook
https://codereview.chromium.org/2007003002/diff/100001/ash/shelf/shelf_delegate.h File ash/shelf/shelf_delegate.h (right): https://codereview.chromium.org/2007003002/diff/100001/ash/shelf/shelf_delegate.h#newcode34 ash/shelf/shelf_delegate.h:34: // Called after |shelf|'s auto-hide state changes. On 2016/05/25 ...
4 years, 7 months ago (2016-05-25 16:24:26 UTC) #8
James Cook
sky, can I get OWNERS?
4 years, 7 months ago (2016-05-25 16:25:06 UTC) #10
sky
LGTM
4 years, 7 months ago (2016-05-25 19:29:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007003002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007003002/160001
4 years, 7 months ago (2016-05-25 21:57:31 UTC) #14
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-05-26 00:00:52 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 00:02:21 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/84d491374cd8d3eef55deb09117a11b0a70b813c
Cr-Commit-Position: refs/heads/master@{#396048}

Powered by Google App Engine
This is Rietveld 408576698