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

Issue 2791803002: mash: Move LauncherItemController to ash, rename ShelfItemDelegate. (Closed)

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

Description

mash: Move LauncherItemController to ash, rename ShelfItemDelegate. Move chrome's LauncherItemController to ash and rename it. Remove the ChromeLauncherController member; use the static getter. Use it for existing ash subclasses and in ShelfModel's ownership. (this will help eliminate CLC's |id_to_item_controller_map_|). Fix up users and simplify old crud out of tests. BUG=557406 TEST=Automated; no shelf item behavior changes. R=jamescook@chromium.org Review-Url: https://codereview.chromium.org/2791803002 Cr-Commit-Position: refs/heads/master@{#461964} Committed: https://chromium.googlesource.com/chromium/src/+/e73759e7b2870df901e45294e19bdce9a47a60f6

Patch Set 1 #

Patch Set 2 : Remove ChromeLauncherController pointer member; use static instance(). #

Patch Set 3 : Fix unit tests; stop using TestLauncherControllerHelper for V1App. #

Patch Set 4 : Move shelf_item_delegate to ash/public/cpp, cleanup. #

Total comments: 26

Patch Set 5 : Address comments. #

Patch Set 6 : cleanup #

Patch Set 7 : Sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -587 lines) Patch
M ash/common/shelf/app_list_shelf_item_delegate.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_application_menu_model.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_application_menu_model.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_model.h View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M ash/common/shelf/shelf_model.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_model_observer.h View 1 2 3 4 2 chunks +3 lines, -7 lines 0 comments Download
M ash/common/shelf/shelf_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_view.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/shelf/shelf_window_watcher_item_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/test/test_shelf_item_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/public/cpp/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A + ash/public/cpp/shelf_item_delegate.h View 1 2 3 3 chunks +21 lines, -23 lines 0 comments Download
A ash/public/cpp/shelf_item_delegate.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 2 3 4 5 4 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 4 5 13 chunks +39 lines, -36 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 3 4 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 2 3 4 5 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 1 2 3 4 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 4 5 1 chunk +9 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.h View 1 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.h View 1 1 chunk +2 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 +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 2 3 3 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 3 8 chunks +24 lines, -21 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 5 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 7 chunks +17 lines, -20 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 21 chunks +67 lines, -86 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 13 chunks +28 lines, -28 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 24 chunks +55 lines, -97 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h View 1 2 3 4 5 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 4 5 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h View 1 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 chunk +0 lines, -69 lines 0 comments Download
D chrome/browser/ui/ash/launcher/launcher_item_controller.cc View 1 chunk +0 lines, -27 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
msw
Hey James, please take a look; thanks!
3 years, 8 months ago (2017-04-04 02:55:10 UTC) #16
James Cook
Looks good but exceeds my nit threshold. :-) Also, I'm a little bummed that all ...
3 years, 8 months ago (2017-04-04 15:34:45 UTC) #19
James Cook
Also, I am in an all-day meeting today. I'll try to check mail after lunch, ...
3 years, 8 months ago (2017-04-04 15:35:22 UTC) #20
msw
Comments addressed, please take another look; thanks! https://codereview.chromium.org/2791803002/diff/100001/ash/common/shelf/shelf_application_menu_model.h File ash/common/shelf/shelf_application_menu_model.h (right): https://codereview.chromium.org/2791803002/diff/100001/ash/common/shelf/shelf_application_menu_model.h#newcode12 ash/common/shelf/shelf_application_menu_model.h:12: #include "ash/public/cpp/shelf_item_delegate.h" ...
3 years, 8 months ago (2017-04-04 18:53:09 UTC) #21
James Cook
LGTM. Nice CL. https://codereview.chromium.org/2791803002/diff/100001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller.h (right): https://codereview.chromium.org/2791803002/diff/100001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h#newcode93 chrome/browser/ui/ash/launcher/chrome_launcher_controller.h:93: // TODO(skuhne): Pass in scoped_ptr to ...
3 years, 8 months ago (2017-04-04 23:57:27 UTC) #28
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/2791803002/160001
3 years, 8 months ago (2017-04-05 00:11:06 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 03:19:54 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/e73759e7b2870df901e45294e19b...

Powered by Google App Engine
This is Rietveld 408576698