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

Issue 2020623004: ash: Move shelf alignment and auto-hide calls from Shell to Shelf (Closed)

Created:
4 years, 6 months ago by James Cook
Modified:
4 years, 6 months ago
Reviewers:
msw, oshima
CC:
chromium-reviews, sadrul, 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 shelf alignment and auto-hide calls from Shell to Shelf Shelf (aka ShelfController) should be the single point of access for alignment and auto-hide state. * Eliminate Shell::GetShelfAlignment and SetShelfAlignment * Eliminate Shell::GetShelfAutoHideBehavior and SetShelfAutoHideBehavior * Convert Shelf::GetAutoHideBehavior() to auto_hide_behavior() * Use Shelf::ForPrimaryDisplay() in unit tests to avoid accessing the RootWindowController. BUG=615502 TEST=existing ash_unittests and unit_tests Committed: https://crrev.com/6afad6dbdc55b439182cadbd9cd08efd3f7ae6ee Cr-Commit-Position: refs/heads/master@{#396994}

Patch Set 1 #

Patch Set 2 : typo #

Total comments: 5

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -161 lines) Patch
M ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/root_window_controller.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shelf/shelf.h View 3 chunks +4 lines, -3 lines 0 comments Download
M ash/shelf/shelf.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 3 chunks +5 lines, -9 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M ash/shell.h View 1 2 3 4 1 chunk +3 lines, -14 lines 0 comments Download
M ash/shell.cc View 1 chunk +0 lines, -20 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 2 chunks +16 lines, -22 lines 0 comments Download
M ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc View 4 chunks +8 lines, -14 lines 0 comments Download
M ash/sysui/context_menu_mus.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/sysui/shelf_delegate_mus.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ash/wm/dock/docked_window_resizer_unittest.cc View 1 2 2 chunks +6 lines, -11 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 2 chunks +5 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/first_run/steps/tray_step.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 7 chunks +14 lines, -26 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (8 generated)
James Cook
msw, please take a look. This is a mostly mechanical change to clean up some ...
4 years, 6 months ago (2016-05-27 22:17:47 UTC) #3
msw
lgtm with minor nits. https://codereview.chromium.org/2020623004/diff/20001/ash/mus/context_menu_mus.cc File ash/mus/context_menu_mus.cc (right): https://codereview.chromium.org/2020623004/diff/20001/ash/mus/context_menu_mus.cc#newcode51 ash/mus/context_menu_mus.cc:51: SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS nit: git cl format? ...
4 years, 6 months ago (2016-05-27 22:36:41 UTC) #4
James Cook
oshima, can I get OWNERS? https://codereview.chromium.org/2020623004/diff/20001/ash/mus/context_menu_mus.cc File ash/mus/context_menu_mus.cc (right): https://codereview.chromium.org/2020623004/diff/20001/ash/mus/context_menu_mus.cc#newcode51 ash/mus/context_menu_mus.cc:51: SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS On 2016/05/27 22:36:40, ...
4 years, 6 months ago (2016-05-27 22:56:26 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020623004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020623004/60001
4 years, 6 months ago (2016-05-31 01:37:26 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 02:30:08 UTC) #10
James Cook
Ping oshima (for OWNERS)?
4 years, 6 months ago (2016-05-31 21:25:35 UTC) #11
oshima
lgtm
4 years, 6 months ago (2016-05-31 21:29:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020623004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2020623004/80001
4 years, 6 months ago (2016-05-31 22:17:39 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-01 00:35:12 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 00:37:19 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6afad6dbdc55b439182cadbd9cd08efd3f7ae6ee
Cr-Commit-Position: refs/heads/master@{#396994}

Powered by Google App Engine
This is Rietveld 408576698