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

Issue 2272793005: ash: Move alignment and autohide behavior from Shelf to WmShelf (Closed)

Created:
4 years, 4 months ago by James Cook
Modified:
4 years, 4 months ago
Reviewers:
msw, Daniel Erat
CC:
chromium-reviews, pam+watch_chromium.org, sadrul, achuith+watch_chromium.org, dzhioev+watch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Move alignment and autohide behavior from Shelf to WmShelf This is a step toward replacing Shelf with WmShelf, which has a more sensible lifetime. It does not change shelf behavior. * Migrate the various getters and setters. * Before the shelf is constructed (after login) default the alignment to bottom-locked. After construction default to bottom. This is weird, but matches what we had before. * Add Shelf::wm_shelf() and use it in pieces of code that we know we'll have to refactor anyway (chrome, some ash/wm pieces we're not converting). * Move ShelfView::OnShelfAlignmentChanged() call into ShelfWidget. In general I'm trying to reduce outside access into ShelfView. * Convert Shelf* to WmShelf* where possible in tests. * Make AshTestBase::GetPrimaryShelf() public so it can be used in test utility functions outside of test classes. BUG=615502 TEST=ash_unittests, chrome unit_tests TBR=derat@chromium.org Committed: https://crrev.com/a18fb174daa8e0c2770ce8f71807856de55f032c Cr-Commit-Position: refs/heads/master@{#413987}

Patch Set 1 #

Patch Set 2 : tweaks #

Total comments: 5

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -289 lines) Patch
M ash/app_list/app_list_presenter_delegate.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf.h View 1 5 chunks +3 lines, -35 lines 0 comments Download
M ash/common/shelf/shelf.cc View 3 chunks +3 lines, -53 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.h View 3 chunks +3 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 5 chunks +8 lines, -6 lines 0 comments Download
M ash/common/shelf/shelf_widget.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/shelf/wm_shelf.h View 6 chunks +19 lines, -3 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 6 chunks +44 lines, -13 lines 0 comments Download
M ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 34 chunks +53 lines, -55 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 9 chunks +12 lines, -12 lines 0 comments Download
M ash/shell/context_menu.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ash/sysui/context_menu_mus.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/test/ash_test_base.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/test/ash_test_base.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 7 chunks +19 lines, -17 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/window_animations.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 7 chunks +7 lines, -10 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 6 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/first_run/steps/tray_step.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 5 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (11 generated)
James Cook
msw, please take a look.
4 years, 4 months ago (2016-08-23 23:36:48 UTC) #4
msw
lgtm with nits/qs. https://codereview.chromium.org/2272793005/diff/20001/ash/common/shelf/wm_shelf.cc File ash/common/shelf/wm_shelf.cc (right): https://codereview.chromium.org/2272793005/diff/20001/ash/common/shelf/wm_shelf.cc#newcode23 ash/common/shelf/wm_shelf.cc:23: shelf_locking_manager_.reset(new ShelfLockingManager(this)); Should this DCHECK that ...
4 years, 4 months ago (2016-08-24 00:18:59 UTC) #5
James Cook
Thanks for the quick review. https://codereview.chromium.org/2272793005/diff/20001/ash/common/shelf/wm_shelf.cc File ash/common/shelf/wm_shelf.cc (right): https://codereview.chromium.org/2272793005/diff/20001/ash/common/shelf/wm_shelf.cc#newcode23 ash/common/shelf/wm_shelf.cc:23: shelf_locking_manager_.reset(new ShelfLockingManager(this)); On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 04:19:08 UTC) #8
James Cook
TBR derat for mechanical changes to chrome/browser/chromeos
4 years, 4 months ago (2016-08-24 04:21:40 UTC) #11
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/2272793005/40001
4 years, 4 months ago (2016-08-24 04:22:41 UTC) #14
Daniel Erat
lgtm for c/b/chromeos
4 years, 4 months ago (2016-08-24 04:33:16 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-24 05:30:05 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 05:32:10 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a18fb174daa8e0c2770ce8f71807856de55f032c
Cr-Commit-Position: refs/heads/master@{#413987}

Powered by Google App Engine
This is Rietveld 408576698