|
mash: Remove ShelfDelegate; move functions to ShelfModel.
Remove ShelfDelegate, subclasses, accessors, etc.
Move ShelfDelegate responsibilities to ash::ShelfModel, add tests.
Move ChromeLauncherControllerImpl ownership to ChromeShellDelegate.
Add lifetime management functions: ShelfInit() and ShelfShutdown().
Apply similar ownership changes in tests; expose an AshTestHelper.
Remove ShelfDelegate responsibilities from ChromeLauncherController:
* Apply chrome-specific item info/delegates in ShelfItemAdded.
- Support ShelfModel::SetItem calls amid ShelfItemAdded in ShelfView.
- Register some item delegates early to avoid a default one.
* Cleanup chrome-side item info in ShelfItemRemoved.
TODO: Make ChromeLauncherControllerImpl lifetime more flexible.
TODO: Move functions to (or add accessors on) ash::[mojom::]ShelfController.
BUG= 557406, 698887
TEST=No Chrome OS shelf behavior changes.
R=jamescook@chromium.org,sky@chromium.org
Review-Url: https://codereview.chromium.org/2791463002
Cr-Commit-Position: refs/heads/master@{#465821}
Committed: https://chromium.googlesource.com/chromium/src/+/5138f3dd861b75ce64e9186b126c5fa8774a03e7
Total comments: 19
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+699 lines, -859 lines) |
Patch |
|
M |
ash/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/mus/BUILD.gn
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
ash/mus/shelf_delegate_mus.h
|
View
|
|
1 chunk |
+0 lines, -37 lines |
0 comments
|
Download
|
|
D |
ash/mus/shelf_delegate_mus.cc
|
View
|
|
1 chunk |
+0 lines, -51 lines |
0 comments
|
Download
|
|
M |
ash/mus/shell_delegate_mus.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/mus/shell_delegate_mus.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
ash/root_window_controller.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
ash/shelf/shelf_delegate.h
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
|
M |
ash/shelf/shelf_model.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+30 lines, -3 lines |
0 comments
|
Download
|
|
M |
ash/shelf/shelf_model.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+106 lines, -0 lines |
0 comments
|
Download
|
|
M |
ash/shelf/shelf_model_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+145 lines, -10 lines |
0 comments
|
Download
|
|
M |
ash/shelf/shelf_view.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
ash/shelf/shelf_view.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
10 chunks |
+19 lines, -20 lines |
0 comments
|
Download
|
|
M |
ash/shelf/shelf_widget.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
ash/shell.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
ash/shell.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+9 lines, -17 lines |
0 comments
|
Download
|
|
M |
ash/shell/shell_delegate_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/shell/shell_delegate_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
ash/shell_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
ash/test/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
ash/test/shelf_view_test_api.h
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
ash/test/shelf_view_test_api.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
ash/test/shell_test_api.h
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ash/test/shell_test_api.cc
|
View
|
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
D |
ash/test/test_shelf_delegate.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
D |
ash/test/test_shelf_delegate.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -99 lines |
0 comments
|
Download
|
|
M |
ash/test/test_shelf_item_delegate.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
|
M |
ash/test/test_shelf_item_delegate.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
M |
ash/test/test_shell_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/test/test_shell_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/bookmark_app_helper.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
|
View
|
1
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/chrome_shell_delegate.h
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/chrome_shell_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+20 lines, -18 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc
|
View
|
|
9 chunks |
+43 lines, -46 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
|
View
|
1
2
|
3 chunks |
+9 lines, -18 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+64 lines, -98 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
11 chunks |
+135 lines, -116 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -18 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+43 lines, -19 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/apps/app_info_dialog/app_info_footer_panel.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/test/base/browser_with_test_window_test.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/test/base/browser_with_test_window_test.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+8 lines, -9 lines |
0 comments
|
Download
|
Total messages: 56 (48 generated)
|