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

Issue 2576913002: Use mojo app list interfaces for mash and classic ash. (Closed)

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

Description

Use mojo app list interfaces for mash and classic ash. Consolidate WmShell, etc. to always use mojo (app list -> presenter). Remove ShellDelegate::GetAppListPresenter and classic/shell members. Remove AppListPresenterMus, combine AppListPresenter and *Impl. Move delegate factory ownership to the presenter impl object. Add app_list::mojom::AppList functions for reporting visibility changes. Add helpers to get ash's cached visibility state, reported by chrome. Add TestAppListPresenter to track ash->chrome calls for tests. Add TestAppListViewPresenterImpl for tests of impl/delegate behavior. Add TestAppListViewDelegateFactory for ash test and shell users. Add an ExampleAppListPresenter for ash_shell_with_content. Add an integration interactive ui test; enable another. Update tests; cleanup ifdefs (ash is Chrome OS only now). TODO: App list toggling in --mash causes ink drop DCHECKs (unchanged by this CL) TODO: Consolidate and simplify more app list code... BUG=557408 TEST=No Chrome OS app list behavior changes. R=mfomitchev@chromium.org,xiyuan@chromium.org,derat@chromium.org,tsepez@chromium.org,yzshen@chromium.org Committed: https://crrev.com/fb834643000804d40d76b024f99026d8187e4995 Cr-Commit-Position: refs/heads/master@{#441498}

Patch Set 1 #

Patch Set 2 : Fixed service init; working on tests. #

Patch Set 3 : Fixed unit tests with mock notifications. #

Patch Set 4 : Cleanup. #

Patch Set 5 : Remove unnecessary AppListPresenter interface; cleanup. #

Patch Set 6 : Working on updating tests. #

Patch Set 7 : Formalize TestAppListPresenter; start fixing tests. #

Patch Set 8 : Fix WindowSelectorTest.SelectingHidesAppList #

Patch Set 9 : Fix WindowCycleControllerTest.SelectingHidesAppList #

Patch Set 10 : Fix shelf tests, working on interactive. #

Patch Set 11 : Cleanup; restore an ash_shell_with_content app list. #

Patch Set 12 : Rebase #

Patch Set 13 : Self review; cleanup. #

Patch Set 14 : Fix test name. #

Total comments: 14

Patch Set 15 : Address comments. #

Patch Set 16 : Add missing dep. #

Total comments: 4

Patch Set 17 : Fix AppListPresenterImplTest. #

Total comments: 10

Patch Set 18 : Fix ExampleAppListPresenter #

Total comments: 2

Patch Set 19 : Address comments; add an interactive ui test; enable another. #

Patch Set 20 : Check AppListButton::is_showing_app_list for Shown/Dismissed notifications #

Patch Set 21 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+709 lines, -597 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +6 lines, -0 lines 0 comments Download
M ash/accelerators/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 19 chunks +24 lines, -64 lines 0 comments Download
M ash/accelerators/accelerator_interactive_uitest_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +13 lines, -3 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate_factory.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M ash/app_list/app_list_presenter_delegate_factory.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/app_list/app_list_presenter_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +39 lines, -48 lines 0 comments Download
M ash/common/shell_delegate.h View 1 2 chunks +1 line, -9 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +7 lines, -11 lines 0 comments Download
M ash/mus/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D ash/mus/app_list_presenter_mus.h View 1 chunk +0 lines, -33 lines 0 comments Download
D ash/mus/app_list_presenter_mus.cc View 1 chunk +0 lines, -49 lines 0 comments Download
M ash/mus/shell_delegate_mus.h View 3 chunks +0 lines, -3 lines 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +58 lines, -58 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +17 lines, -82 lines 0 comments Download
M ash/shell/content/client/shell_browser_main_parts.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M ash/shell/content/client/shell_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -0 lines 0 comments Download
A ash/shell/example_app_list_presenter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +40 lines, -0 lines 0 comments Download
A ash/shell/example_app_list_presenter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +66 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 7 8 3 chunks +1 line, -10 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +1 line, -35 lines 0 comments Download
M ash/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -0 lines 0 comments Download
A ash/test/test_app_list_view_presenter_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +29 lines, -0 lines 0 comments Download
A ash/test/test_app_list_view_presenter_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +23 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 4 chunks +0 lines, -14 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 4 chunks +1 line, -40 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +9 lines, -3 lines 0 comments Download
M ash/wm/window_cycle_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -3 lines 0 comments Download
A chrome/browser/ui/ash/app_list/app_list_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_presenter_service.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_presenter_service.cc View 1 2 3 4 10 11 12 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_service_ash.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_service_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -8 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -0 lines 0 comments Download
M ui/app_list/presenter/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -1 line 0 comments Download
M ui/app_list/presenter/app_list.h View 2 chunks +15 lines, -0 lines 0 comments Download
M ui/app_list/presenter/app_list.cc View 6 9 10 11 12 1 chunk +31 lines, -0 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter.h View 1 2 3 4 1 chunk +0 lines, -41 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter.mojom View 2 chunks +5 lines, -1 line 0 comments Download
M ui/app_list/presenter/app_list_presenter_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter_delegate_factory.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +31 lines, -12 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +24 lines, -4 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +11 lines, -13 lines 0 comments Download
M ui/app_list/presenter/app_list_view_delegate_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
A ui/app_list/presenter/test/test_app_list_presenter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +46 lines, -0 lines 0 comments Download
A ui/app_list/presenter/test/test_app_list_presenter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +32 lines, -0 lines 0 comments Download
A ui/app_list/presenter/test/test_app_list_view_delegate_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +32 lines, -0 lines 0 comments Download
A ui/app_list/presenter/test/test_app_list_view_delegate_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 83 (62 generated)
msw
Hey James and Mikhail, please take a look; thanks!
4 years ago (2016-12-21 17:25:18 UTC) #19
mfomitchev
Awesome, thanks for doing this! Still reviewing, but here are some mid-way comments. https://codereview.chromium.org/2576913002/diff/230055/ash/accelerators/accelerator_controller_unittest.cc File ...
4 years ago (2016-12-22 03:17:46 UTC) #28
msw
Comments addressed, please take another look; thanks! +Xiyuan for ui/app_list/OWNERS review. +Dan for ash/OWNERS and ...
3 years, 12 months ago (2016-12-22 16:31:52 UTC) #31
Daniel Erat
generally lgtm as an owner, but i have basically zero app list experience and will ...
3 years, 12 months ago (2016-12-22 18:17:58 UTC) #46
Daniel Erat
(note that my comments ended up being spread across multiple patch sets)
3 years, 12 months ago (2016-12-22 18:18:27 UTC) #47
mfomitchev
LGTM with a few nits - I leave it up to you if you want ...
3 years, 12 months ago (2016-12-22 18:26:56 UTC) #48
mfomitchev
https://codereview.chromium.org/2576913002/diff/230055/ash/accelerators/accelerator_controller_unittest.cc File ash/accelerators/accelerator_controller_unittest.cc (left): https://codereview.chromium.org/2576913002/diff/230055/ash/accelerators/accelerator_controller_unittest.cc#oldcode983 ash/accelerators/accelerator_controller_unittest.cc:983: // When spoken feedback is on, the AppList should ...
3 years, 12 months ago (2016-12-22 18:27:11 UTC) #49
xiyuan
ui/app_list lgtm
3 years, 12 months ago (2016-12-22 19:39:06 UTC) #52
msw
Comments addressed; take another look if you're interested. +Tom for app_list_presenter.mojom review. +Yuzhu for ash/accelerators/DEPS ...
3 years, 12 months ago (2016-12-23 03:59:34 UTC) #55
Daniel Erat
thanks for the replies. lgtm as-is
3 years, 12 months ago (2016-12-23 04:33:36 UTC) #58
mfomitchev
https://codereview.chromium.org/2576913002/diff/310001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2576913002/diff/310001/ash/shelf/shelf_view_unittest.cc#newcode1477 ash/shelf/shelf_view_unittest.cc:1477: app_list_button->OnAppListShown(); On 2016/12/23 03:59:34, msw wrote: > On 2016/12/22 ...
3 years, 12 months ago (2016-12-23 16:49:27 UTC) #61
msw
https://codereview.chromium.org/2576913002/diff/310001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2576913002/diff/310001/ash/shelf/shelf_view_unittest.cc#newcode1477 ash/shelf/shelf_view_unittest.cc:1477: app_list_button->OnAppListShown(); On 2016/12/23 16:49:27, mfomitchev wrote: > On 2016/12/23 ...
3 years, 12 months ago (2016-12-23 17:34:27 UTC) #64
mfomitchev
On 2016/12/23 17:34:27, msw wrote: > https://codereview.chromium.org/2576913002/diff/310001/ash/shelf/shelf_view_unittest.cc > File ash/shelf/shelf_view_unittest.cc (right): > > https://codereview.chromium.org/2576913002/diff/310001/ash/shelf/shelf_view_unittest.cc#newcode1477 > ...
3 years, 12 months ago (2016-12-23 18:33:24 UTC) #65
Tom Sepez
mojom LGTM
3 years, 11 months ago (2017-01-03 19:05:13 UTC) #68
yzshen1
On 2017/01/03 19:05:13, Tom Sepez wrote: > mojom LGTM ash/accelerators/DEPS LGTM
3 years, 11 months ago (2017-01-03 22:19:04 UTC) #69
yzshen1
On 2017/01/03 19:05:13, Tom Sepez wrote: > mojom LGTM ash/accelerators/DEPS LGTM
3 years, 11 months ago (2017-01-03 22:19:09 UTC) #70
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/2576913002/370001
3 years, 11 months ago (2017-01-04 01:34:37 UTC) #73
commit-bot: I haz the power
Failed to apply patch for ash/common/wm_shell.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-04 02:54:04 UTC) #75
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/2576913002/390001
3 years, 11 months ago (2017-01-04 21:35:21 UTC) #78
commit-bot: I haz the power
Committed patchset #21 (id:390001)
3 years, 11 months ago (2017-01-04 22:50:43 UTC) #81
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 22:54:25 UTC) #83
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/fb834643000804d40d76b024f99026d8187e4995
Cr-Commit-Position: refs/heads/master@{#441498}

Powered by Google App Engine
This is Rietveld 408576698