|
|
mash: Cleanup ash shelf application menu code.
Make chrome push menu state into ash, avoid some ash->chrome delegation.
Make ShelfItemDelegate supply a list of app menu items, not a menu model.
Make ShelfView construct the menu model, not chrome shelf item delegates.
Make ShelfView supply the app name (shelf item title), not each item delegate.
Nix redundant LauncherItemController::GetApplicationList, inclusion of app title item.
Nix app menu item support for leading separators and IsEnabled() (for app titles).
(ShelfView gets the app title from the shelf item when constructing the menu)
Move the item & model classes to ash (item is public, model is 'internal')
Lots of simplification, refactoring, test updates, and cleanup.
TODO: Generalize mojom::ContextMenuItem and eliminate this app menu item.
TODO: Generalize mojom::ShelfItemDelegate::ExecuteCommand for app menu items.
BUG= 557406
TEST=Automated; no behavior change for menus shown when clicking shelf items with multiple open windows.
R=jamescook@chromium.org
Review-Url: https://codereview.chromium.org/2671923002
Cr-Commit-Position: refs/heads/master@{#448692}
Committed: https://chromium.googlesource.com/chromium/src/+/84352d5d869c9c5a8092f4dc44dab7a6950a3b18
Total comments: 51
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+579 lines, -946 lines) |
Patch |
 |
M |
ash/BUILD.gn
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/app_list_shelf_item_delegate.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/common/shelf/app_list_shelf_item_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
ash/common/shelf/shelf_application_menu_model.h
|
View
|
1
2
3
4
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/common/shelf/shelf_application_menu_model.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/common/shelf/shelf_application_menu_model_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+130 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_controller.cc
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -32 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_item_delegate.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -11 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_view.cc
|
View
|
1
2
3
4
|
3 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_window_watcher_item_delegate.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_window_watcher_item_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/common/test/test_shelf_item_delegate.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ash/common/test/test_shelf_item_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ash/public/cpp/BUILD.gn
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/public/cpp/shelf_application_menu_item.h
|
View
|
1
2
3
4
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ash/public/cpp/shelf_application_menu_item.cc
|
View
|
1
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/shelf/shelf_view_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -32 lines |
0 comments
|
Download
|
 |
M |
ash/shell/window_watcher_shelf_item_delegate.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/shell/window_watcher_shelf_item_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/BUILD.gn
|
View
|
1
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
|
View
|
1
2
3
4
|
4 chunks |
+24 lines, -40 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
View
|
1
2
3
4
|
4 chunks |
+23 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
|
View
|
1
2
3
4
|
5 chunks |
+23 lines, -36 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h
|
View
|
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.cc
|
View
|
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.h
|
View
|
|
1 chunk |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc
|
View
|
|
1 chunk |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h
|
View
|
|
1 chunk |
+9 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.cc
|
View
|
|
1 chunk |
+4 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
|
View
|
1
2
3
4
|
4 chunks |
+13 lines, -34 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
View
|
1
2
3
4
|
17 chunks |
+55 lines, -125 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc
|
View
|
1
2
3
4
|
3 chunks |
+15 lines, -18 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.h
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.cc
|
View
|
|
1 chunk |
+0 lines, -86 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/launcher_application_menu_item_model_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -109 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/launcher_item_controller.h
|
View
|
1
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/test/launcher_application_menu_item_model_test_api.h
|
View
|
|
1 chunk |
+0 lines, -36 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/ash/launcher/test/launcher_application_menu_item_model_test_api.cc
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/test/test_chrome_launcher_app_menu_item.h
|
View
|
1
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/test/test_chrome_launcher_app_menu_item.cc
|
View
|
1
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/test/BUILD.gn
|
View
|
1
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
Total messages: 23 (16 generated)
|