|
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}
Total comments: 18
Total comments: 2
|
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
|
Total messages: 31 (22 generated)
|