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

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)

Created:
4 years, 3 months ago by James Cook
Modified:
4 years, 3 months ago
Reviewers:
msw, xiyuan
CC:
chromium-reviews, alemate+watch_chromium.org, sadrul, dtseng+watch_chromium.org, aboxhall+watch_chromium.org, achuith+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, pam+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Remove ash::Shelf in favor of ash::WmShelf WmShelf exists for the lifetime of the RootWindowController, which makes it easier to reason about. This also eliminates a wrapper layer in the shelf code. * Move creation of ShelfView into WmShelf * Move OnShelfCreated and OnShelfDestroyed notifications to WmShelf * Rewrite ShelfWidgetTest.ShelfInitiallySizedAfterLogin to test both displays * Fix IWYU for ShelfWidget * Move FocusShelf and LaunchApp from AcceleratorControllerDelegateAura to the common AcceleratorController, as they only use //ash/common This does not yet change the lifetime or ownership of ShelfWidget, so there is still some oddness around shelf "creation", which really means ShelfView creation. Pure refactor, no behavior changes. BUG=615502 TEST=ash_unittests, unit_tests, manual tests of login with and without a secondary display. Committed: https://crrev.com/1cad77e9db74d3826578d2f51b7474d86a765f40 Cr-Commit-Position: refs/heads/master@{#415504}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : rebase #

Total comments: 18

Patch Set 4 : review comments #

Total comments: 2

Patch Set 5 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -486 lines) Patch
M ash/accelerators/accelerator_controller_delegate_aura.cc View 1 2 5 chunks +0 lines, -68 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download
M ash/aura/wm_root_window_controller_aura.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/accelerators/accelerator_controller.cc View 1 2 3 5 chunks +61 lines, -5 lines 0 comments Download
D ash/common/shelf/shelf.h View 1 chunk +0 lines, -68 lines 0 comments Download
D ash/common/shelf/shelf.cc View 1 chunk +0 lines, -40 lines 0 comments Download
M ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_widget.h View 3 chunks +0 lines, -7 lines 0 comments Download
M ash/common/shelf/shelf_widget.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ash/common/shelf/wm_shelf.h View 1 2 3 5 chunks +12 lines, -9 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 3 5 chunks +24 lines, -17 lines 0 comments Download
M ash/common/system/toast/toast_overlay.cc View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/wm/immersive_context_ash.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/wm/overview/window_grid.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ash/common/wm/overview/window_selector.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/panels/panel_layout_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/wm/workspace_controller.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ash/dip_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/display/root_window_transformers_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/display/window_tree_host_manager_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/first_run/first_run_helper_impl.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M ash/focus_cycler_unittest.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M ash/mus/accelerators/accelerator_controller_delegate_mus.cc View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M ash/mus/bridge/wm_shelf_mus.h View 2 chunks +0 lines, -4 lines 0 comments Download
M ash/mus/bridge/wm_shelf_mus.cc View 1 2 3 2 chunks +2 lines, -10 lines 0 comments Download
M ash/mus/workspace/workspace_layout_manager_unittest.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M ash/root_window_controller.h View 1 2 3 4 3 chunks +1 line, -8 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 4 chunks +9 lines, -20 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shelf/shelf_unittest.cc View 2 chunks +6 lines, -26 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 3 chunks +4 lines, -6 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 2 chunks +24 lines, -20 lines 0 comments Download
M ash/shell.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/window_watcher.cc View 1 chunk +0 lines, -1 line 0 comments Download
D ash/test/shelf_test_api.h View 1 chunk +0 lines, -33 lines 0 comments Download
M ash/wm/dock/docked_window_layout_manager_unittest.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M ash/wm/panels/attached_panel_window_targeter.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/system_gesture_event_filter_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/accessibility/chromevox_panel.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/first_run/steps/tray_step.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 6 chunks +20 lines, -15 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 10 chunks +14 lines, -20 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/shelf_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc View 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
James Cook
msw, please take a look.
4 years, 3 months ago (2016-08-30 20:21:49 UTC) #5
msw
lgtm with nits. Goodbye Shelf; woo hoo! https://codereview.chromium.org/2293183002/diff/40001/ash/common/shelf/wm_shelf.h File ash/common/shelf/wm_shelf.h (right): https://codereview.chromium.org/2293183002/diff/40001/ash/common/shelf/wm_shelf.h#newcode51 ash/common/shelf/wm_shelf.h:51: // TODO(jamescook): ...
4 years, 3 months ago (2016-08-30 22:02:07 UTC) #13
James Cook
Thanks for the quick review. https://codereview.chromium.org/2293183002/diff/40001/ash/common/shelf/wm_shelf.h File ash/common/shelf/wm_shelf.h (right): https://codereview.chromium.org/2293183002/diff/40001/ash/common/shelf/wm_shelf.h#newcode51 ash/common/shelf/wm_shelf.h:51: // TODO(jamescook): Make this ...
4 years, 3 months ago (2016-08-30 23:00:57 UTC) #14
James Cook
xiyuan, can I get OWNERS for chrome/browser/chromeos/* ?
4 years, 3 months ago (2016-08-30 23:02:28 UTC) #18
xiyuan
chrome/browser/chromeos LGTM https://codereview.chromium.org/2293183002/diff/60001/chrome/browser/chromeos/accessibility/accessibility_manager.cc File chrome/browser/chromeos/accessibility/accessibility_manager.cc (right): https://codereview.chromium.org/2293183002/diff/60001/chrome/browser/chromeos/accessibility/accessibility_manager.cc#newcode1528 chrome/browser/chromeos/accessibility/accessibility_manager.cc:1528: if (!shelf->IsShelfInitialized()) I assume that shelf would ...
4 years, 3 months ago (2016-08-30 23:14:31 UTC) #23
James Cook
Thanks for the review. https://codereview.chromium.org/2293183002/diff/60001/chrome/browser/chromeos/accessibility/accessibility_manager.cc File chrome/browser/chromeos/accessibility/accessibility_manager.cc (right): https://codereview.chromium.org/2293183002/diff/60001/chrome/browser/chromeos/accessibility/accessibility_manager.cc#newcode1528 chrome/browser/chromeos/accessibility/accessibility_manager.cc:1528: if (!shelf->IsShelfInitialized()) On 2016/08/30 23:14:31, ...
4 years, 3 months ago (2016-08-30 23:18:33 UTC) #24
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/2293183002/80001
4 years, 3 months ago (2016-08-30 23:19:19 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-08-31 00:03:00 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 00:05:08 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1cad77e9db74d3826578d2f51b7474d86a765f40
Cr-Commit-Position: refs/heads/master@{#415504}

Powered by Google App Engine
This is Rietveld 408576698