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

Issue 2688353005: Fix shelf alignment and auto-hide initialization. (Closed)

Created:
3 years, 10 months ago by msw
Modified:
3 years, 10 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, Qiang(Joe) Xu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix shelf alignment and auto-hide initialization. Leave the shelf locked and hidden until user prefs are loaded. (otherwise, a left/right shelf may be placed incorrectly on login) Make TestShelfDelegate init the shelf prefs, like Chrome would. Use TestShelfDelegate as the base class in shelf_view_unittest.cc. To fix mash_unittests: -Use a TestShellDelegate (and its test sub-delegates). -Remove TestShelfDelegate's ShelfModel param (WmShell not ready). -Fix an expectation in AcceleratorControllerTest.GlobalAccelerators. BUG=681883 TEST=automated; snapped windows don't shrink across login w/left-shelf; no shelf behavior changes. R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2688353005 Cr-Commit-Position: refs/heads/master@{#450378} Committed: https://chromium.googlesource.com/chromium/src/+/0bc6a07e9b04a8885f9e206f035e7c2e011b132c

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 4

Patch Set 3 : Sync and rebase #

Patch Set 4 : Fix mash_unittests by installing a TestShellDelegate. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -63 lines) Patch
M ash/common/shelf/wm_shelf.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/test/test_shelf_delegate.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M ash/common/test/test_shelf_delegate.cc View 1 2 3 4 chunks +37 lines, -7 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_unittest.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M ash/mus/shell_delegate_mus.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 3 2 chunks +2 lines, -8 lines 0 comments Download
M ash/mus/test/wm_test_helper.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/mus/window_manager.h View 1 2 3 2 chunks +3 lines, -7 lines 2 comments Download
M ash/mus/window_manager.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 chunks +3 lines, -10 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (11 generated)
msw
Hey James, please take a look; thanks!
3 years, 10 months ago (2017-02-13 23:22:42 UTC) #4
James Cook
LGTM with nits. https://codereview.chromium.org/2688353005/diff/20001/ash/common/shelf/wm_shelf.h File ash/common/shelf/wm_shelf.h (right): https://codereview.chromium.org/2688353005/diff/20001/ash/common/shelf/wm_shelf.h#newcode167 ash/common/shelf/wm_shelf.h:167: ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_ALWAYS_HIDDEN; This makes ...
3 years, 10 months ago (2017-02-14 01:38:03 UTC) #5
James Cook
Hrm, you have some mash_unittest failures.
3 years, 10 months ago (2017-02-14 01:38:41 UTC) #6
msw
Please take another look, thanks! (I also fixed mash_unittest failures) https://codereview.chromium.org/2688353005/diff/20001/ash/common/shelf/wm_shelf.h File ash/common/shelf/wm_shelf.h (right): https://codereview.chromium.org/2688353005/diff/20001/ash/common/shelf/wm_shelf.h#newcode167 ...
3 years, 10 months ago (2017-02-14 05:13:18 UTC) #12
James Cook
Still LGTM For supervised users I was thinking: * Login to an account, set shelf ...
3 years, 10 months ago (2017-02-14 15:12:07 UTC) #13
msw
On 2017/02/14 15:12:07, James Cook wrote: > For supervised users I was thinking: > * ...
3 years, 10 months ago (2017-02-14 16:26:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2688353005/60001
3 years, 10 months ago (2017-02-14 16:26:56 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 16:34:15 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0bc6a07e9b04a8885f9e206f035e...

Powered by Google App Engine
This is Rietveld 408576698