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

Issue 2718563008: mash: Use mojo for ShelfItemDelegate and [app] MenuItem. (Closed)

Created:
3 years, 10 months ago by msw
Modified:
3 years, 9 months ago
Reviewers:
Tom Sepez, James Cook
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, kalyank, darin (slow to review), Matt Giuca
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Use mojo for ShelfItemDelegate and [app] MenuItem. Merge ItemSelected and GetAppMenuItems mojo interface functions. (return app menu items with the action taken from selection handling) Remove the non-mojo ash::ShelfItemDelegate base class. Remove some unused mash pinning and reordering functionality. (it'll be fixed later, when mash and cash can use the same pattern) Replace ShelfApplicationMenuItem with the MenuItem mojo struct. Add ShelfAction and ShelfLaunchSource mojo enums and traits. BUG=557406 TEST=No Chrome OS shelf item (or app menu) behavior changes; automated. R=jamescook@chromium.org,tsepez@chromium.org Review-Url: https://codereview.chromium.org/2718563008 Cr-Commit-Position: refs/heads/master@{#456179} Committed: https://chromium.googlesource.com/chromium/src/+/77414f1023d40d82ec1b636f67a99316b26210be

Patch Set 1 #

Patch Set 2 : Working on rebase... #

Patch Set 3 : Use EnumTraits. #

Patch Set 4 : Working on it... #

Patch Set 5 : Building and some manual testing works. #

Patch Set 6 : Rebase #

Patch Set 7 : Cleanup; fix ash_shell compile and a couple tests. #

Total comments: 40

Patch Set 8 : Address comments. #

Total comments: 9

Patch Set 9 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+597 lines, -738 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -12 lines 0 comments Download
M ash/common/shelf/shelf_application_menu_model.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -9 lines 0 comments Download
M ash/common/shelf/shelf_application_menu_model.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -9 lines 0 comments Download
M ash/common/shelf/shelf_application_menu_model_unittest.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -10 lines 0 comments Download
M ash/common/shelf/shelf_button_pressed_metric_tracker.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_controller.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -112 lines 0 comments Download
M ash/common/shelf/shelf_item_delegate.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -51 lines 0 comments Download
M ash/common/shelf/shelf_item_delegate.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -19 lines 0 comments Download
M ash/common/shelf/shelf_model.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -5 lines 0 comments Download
M ash/common/shelf/shelf_model.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_model_observer.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_view.h View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -44 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -19 lines 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 3 4 5 6 7 8 4 chunks +15 lines, -4 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -12 lines 0 comments Download
M ash/public/cpp/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
D ash/public/cpp/shelf_application_menu_item.h View 1 2 3 1 chunk +0 lines, -46 lines 0 comments Download
D ash/public/cpp/shelf_application_menu_item.cc View 1 2 3 1 chunk +0 lines, -18 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/public/interfaces/shelf.mojom View 1 2 3 4 5 6 7 8 4 chunks +49 lines, -22 lines 0 comments Download
M ash/public/interfaces/shelf.typemap View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ash/public/interfaces/shelf_struct_traits.h View 1 2 3 4 5 6 2 chunks +75 lines, -0 lines 0 comments Download
M ash/shelf/shelf_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +27 lines, -22 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/window_watcher.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 2 3 4 5 6 8 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -18 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h View 1 2 3 4 5 6 8 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -16 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 2 3 4 5 6 8 1 chunk +6 lines, -6 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 4 chunks +35 lines, -25 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 7 8 9 chunks +20 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 5 chunks +31 lines, -7 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 5 chunks +16 lines, -24 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 2 3 4 5 6 7 8 3 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -49 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h View 1 2 3 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.cc View 1 2 3 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (27 generated)
msw
Hey James, please take a look; thanks!
3 years, 9 months ago (2017-03-08 21:29:18 UTC) #16
James Cook
I like the approach. https://codereview.chromium.org/2718563008/diff/160001/ash/common/shelf/shelf_item_delegate.h File ash/common/shelf/shelf_item_delegate.h (right): https://codereview.chromium.org/2718563008/diff/160001/ash/common/shelf/shelf_item_delegate.h#newcode26 ash/common/shelf/shelf_item_delegate.h:26: void ItemSelectedBySource(ShelfLaunchSource source); Does this ...
3 years, 9 months ago (2017-03-09 01:09:47 UTC) #19
msw
Comments addressed. Please take another look, thanks! https://codereview.chromium.org/2718563008/diff/160001/ash/common/shelf/shelf_item_delegate.h File ash/common/shelf/shelf_item_delegate.h (right): https://codereview.chromium.org/2718563008/diff/160001/ash/common/shelf/shelf_item_delegate.h#newcode26 ash/common/shelf/shelf_item_delegate.h:26: void ItemSelectedBySource(ShelfLaunchSource ...
3 years, 9 months ago (2017-03-10 06:17:57 UTC) #24
James Cook
LGTM. nit: I think you should update the CL description since there's no ShelfItemDelegate subclass ...
3 years, 9 months ago (2017-03-10 16:56:01 UTC) #25
msw
+Tom for ash/public/interfaces OWNERS review. James, I'll address your other comments shortly.
3 years, 9 months ago (2017-03-10 17:54:50 UTC) #28
Tom Sepez
The changes themselves LGTM, but we should chat sometime about what prevents clients from messing ...
3 years, 9 months ago (2017-03-10 18:09:12 UTC) #29
msw
On 2017/03/10 18:09:12, Tom Sepez wrote: > The changes themselves LGTM, but we should chat ...
3 years, 9 months ago (2017-03-10 18:21:06 UTC) #30
Tom Sepez
> That's a very good question; I hadn't thought of that. I suppose we are ...
3 years, 9 months ago (2017-03-10 18:38:45 UTC) #31
msw
On 2017/03/10 18:38:45, Tom Sepez wrote: > > That's a very good question; I hadn't ...
3 years, 9 months ago (2017-03-10 19:11:48 UTC) #32
msw
Comments addressed; landing. https://codereview.chromium.org/2718563008/diff/180001/ash/common/shelf/shelf_view.cc File ash/common/shelf/shelf_view.cc (right): https://codereview.chromium.org/2718563008/diff/180001/ash/common/shelf/shelf_view.cc#newcode1619 ash/common/shelf/shelf_view.cc:1619: // For the app list menu ...
3 years, 9 months ago (2017-03-10 20:44:45 UTC) #33
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/2718563008/200001
3 years, 9 months ago (2017-03-10 20:45:49 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 21:58:53 UTC) #39
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/77414f1023d40d82ec1b636f67a9...

Powered by Google App Engine
This is Rietveld 408576698