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

Issue 2716403005: mash: Remove shelf app menu item objects. (Closed)

Created:
3 years, 9 months ago by msw
Modified:
3 years, 9 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Remove shelf app menu item objects. Remove ash::ShelfApplicationMenuItem subclasses. Add command ids to the base class to identify menu items. Add ShelfItemDelegate::ExecuteCommand for menu item selection. Move app menu item object logic into shelf item delegates. Cleanup: -Make some BrowserShortcutLauncherItemController functions local. -Rename ChromeLauncherController::GetAppMenuItemsForTest, nix unused param. -Simplify ExtensionAppWindowLauncherItemController (icon, registry, etc.) BUG=557406 TEST=Automated; no shelf app menu behavior changes. R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2716403005 Cr-Commit-Position: refs/heads/master@{#454340} Committed: https://chromium.googlesource.com/chromium/src/+/08eddf09b057e24f14e20ed473836970d0d8021b

Patch Set 1 #

Patch Set 2 : Passes manual testing. #

Patch Set 3 : Fix shortcut impl and tests; cleanup. #

Patch Set 4 : Fix ash_shell compile #

Total comments: 34

Patch Set 5 : Address comments. #

Total comments: 4

Patch Set 6 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -457 lines) Patch
M ash/common/shelf/app_list_shelf_item_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.cc View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_application_menu_model.h View 1 2 3 4 5 3 chunks +10 lines, -4 lines 0 comments Download
M ash/common/shelf/shelf_application_menu_model.cc View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_application_menu_model_unittest.cc View 1 2 5 chunks +11 lines, -8 lines 0 comments Download
M ash/common/shelf/shelf_controller.cc View 1 2 3 4 1 chunk +7 lines, -6 lines 0 comments Download
M ash/common/shelf/shelf_item_delegate.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ash/public/cpp/shelf_application_menu_item.h View 1 2 3 4 1 chunk +9 lines, -9 lines 0 comments Download
M ash/public/cpp/shelf_application_menu_item.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 4 5 2 chunks +35 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 4 1 chunk +7 lines, -0 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, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 2 3 4 1 chunk +7 lines, -0 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, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 2 3 4 4 chunks +19 lines, -18 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 3 4 5 7 chunks +119 lines, -42 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.h View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc View 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.h View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc View 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 1 chunk +2 lines, -4 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 +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 6 chunks +22 lines, -10 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 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h View 1 2 3 4 3 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc View 1 2 3 4 5 2 chunks +22 lines, -52 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
msw
Hey James, please take a look; thanks!
3 years, 9 months ago (2017-03-01 17:36:13 UTC) #11
James Cook
Approach looks good. https://codereview.chromium.org/2716403005/diff/60001/ash/common/shelf/shelf_application_menu_model.cc File ash/common/shelf/shelf_application_menu_model.cc (right): https://codereview.chromium.org/2716403005/diff/60001/ash/common/shelf/shelf_application_menu_model.cc#newcode29 ash/common/shelf/shelf_application_menu_model.cc:29: AddSeparator(ui::SPACING_SEPARATOR); DCHECK(delegate_)? Or early exit for ...
3 years, 9 months ago (2017-03-01 19:50:49 UTC) #12
msw
Comments addressed. Please take another look; thanks! https://codereview.chromium.org/2716403005/diff/60001/ash/common/shelf/shelf_application_menu_model.cc File ash/common/shelf/shelf_application_menu_model.cc (right): https://codereview.chromium.org/2716403005/diff/60001/ash/common/shelf/shelf_application_menu_model.cc#newcode29 ash/common/shelf/shelf_application_menu_model.cc:29: AddSeparator(ui::SPACING_SEPARATOR); On ...
3 years, 9 months ago (2017-03-02 02:59:20 UTC) #15
James Cook
LGTM with nits Lemme know if you want me to look again, or just go ...
3 years, 9 months ago (2017-03-02 15:43:00 UTC) #18
msw
Thanks, comments addressed. Feel free to take another look; landing. https://codereview.chromium.org/2716403005/diff/60001/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc (right): https://codereview.chromium.org/2716403005/diff/60001/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc#newcode129 ...
3 years, 9 months ago (2017-03-02 18:37:48 UTC) #19
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/2716403005/100001
3 years, 9 months ago (2017-03-02 18:38:29 UTC) #22
James Cook
still lgtm
3 years, 9 months ago (2017-03-02 18:59:32 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 19:36:01 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/08eddf09b057e24f14e20ed47383...

Powered by Google App Engine
This is Rietveld 408576698