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

Issue 1830293002: AppListController refactoring part 1: AppListShower implementation. (Closed)

Created:
4 years, 9 months ago by mfomitchev
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tfarina, Matt Giuca, tapted
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AppListController refactoring part 1: AppListShower implementation. This is the first part of ash::AppListController refactoring preparing it for the Mus+ash use. The goal of the refactoring is to break up ash::AppListController into two parts: AppListShower (implemented in ui/app_list/) and AppListDelegate (implemented in ash/wm). In Mus+ash world, app list will live in the chrome process, and mash/SysUI will interact with it via a thin interface. More details in the design doc: https://docs.google.com/document/d/1M9vqTTuprMssRXs8UIVaFjQUq3lUxSzwrWoPjPvca6Q/edit?ts=56d0e9f0#heading=h.b2znwtuxd2x2 This CL adds interfaces for AppListShower and AppListDelegate, as well as the default implementation of the shower: AppListShowerImpl and unit tests. BUG=557408 Committed: https://crrev.com/216ff0ba63afa3ba3ec066d12fac41df95fdc7e0 Cr-Commit-Position: refs/heads/master@{#385526}

Patch Set 1 #

Patch Set 2 : --similarity 30 #

Total comments: 27

Patch Set 3 : Adding aura to deps of app_list_unittests #

Patch Set 4 : Making the aura dependency conditional. #

Patch Set 5 : Adding a direct dependency on //ui/aura:test_support #

Patch Set 6 : Adding a direct dependency on //ui/wm:wm. #

Patch Set 7 : Addressing review feedback. #

Patch Set 8 : Tweaking unit test TearDown() a bit for better shutdown test. #

Patch Set 9 : Getting rid of the keyboard controller code - will put this into the delegate. #

Patch Set 10 : Updating gyp/gn to remove keyboard dependency. #

Patch Set 11 : AppListShower to new component: //ui/app_list/shower, GetViewDelegate() in GetViewDelegate(). #

Total comments: 4

Patch Set 12 : Moving app list shower files to proper folders. #

Patch Set 13 : Removing changes to ash build files for now. #

Patch Set 14 : Fixing nits. #

Patch Set 15 : Buildbot and trybot configs. #

Patch Set 16 : Adding ui_test_pak as a data_deps to app_list_shower_unittests. #

Patch Set 17 : data_deps doesn't seem to work on trybot - adding ui_test_pak as "data" instead. #

Patch Set 18 : Fixing target names in .isolate. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1018 lines, -150 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M testing/buildbot/chromium.chromiumos.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +18 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.fyi.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +30 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +18 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.memory.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.memory.fyi.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +33 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.webkit.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.win.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +25 lines, -0 lines 0 comments Download
M testing/buildbot/chromium_trybot.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M testing/buildbot/client.v8.fyi.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M testing/buildbot/tryserver.v8.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A ui/app_list/shower/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +73 lines, -0 lines 0 comments Download
A ui/app_list/shower/app_list_shower.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A ui/app_list/shower/app_list_shower.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +107 lines, -0 lines 0 comments Download
A ui/app_list/shower/app_list_shower_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +55 lines, -0 lines 0 comments Download
A ui/app_list/shower/app_list_shower_delegate_factory.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +26 lines, -0 lines 0 comments Download
A + ui/app_list/shower/app_list_shower_export.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -13 lines 0 comments Download
A + ui/app_list/shower/app_list_shower_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +47 lines, -82 lines 0 comments Download
A ui/app_list/shower/app_list_shower_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +264 lines, -0 lines 0 comments Download
A ui/app_list/shower/app_list_shower_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +202 lines, -0 lines 0 comments Download
A + ui/app_list/shower/app_list_shower_unittests.isolate View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +8 lines, -8 lines 0 comments Download
A + ui/app_list/shower/test/DEPS View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A + ui/app_list/shower/test/app_list_shower_impl_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -25 lines 0 comments Download
A + ui/app_list/shower/test/app_list_shower_impl_test_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -13 lines 0 comments Download
A + ui/app_list/shower/test/run_all_unittests.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 55 (23 generated)
mfomitchev
PTAL
4 years, 9 months ago (2016-03-24 18:17:47 UTC) #1
mfomitchev
PTAL
4 years, 9 months ago (2016-03-24 18:18:18 UTC) #3
mfomitchev
Full CL for reference: https://codereview.chromium.org/1770993002/
4 years, 9 months ago (2016-03-24 18:18:49 UTC) #4
sky
Xiyuan is the expert here. I'm hoping he can remove this. On Thu, Mar 24, ...
4 years, 9 months ago (2016-03-24 19:03:42 UTC) #5
xiyuan
Mostly good. https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_delegate.h File ui/app_list/app_list_shower_delegate.h (right): https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_delegate.h#newcode19 ui/app_list/app_list_shower_delegate.h:19: class AppListView; nit: insert an empty line ...
4 years, 9 months ago (2016-03-24 20:31:12 UTC) #6
mfomitchev
https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_delegate.h File ui/app_list/app_list_shower_delegate.h (right): https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_delegate.h#newcode19 ui/app_list/app_list_shower_delegate.h:19: class AppListView; On 2016/03/24 20:31:11, xiyuan wrote: > nit: ...
4 years, 8 months ago (2016-03-29 17:33:32 UTC) #7
xiyuan
lgtm Cool. https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_impl.cc File ui/app_list/app_list_shower_impl.cc (right): https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_impl.cc#newcode142 ui/app_list/app_list_shower_impl.cc:142: shower_delegate_.reset(); On 2016/03/29 17:33:31, mfomitchev wrote: > ...
4 years, 8 months ago (2016-03-29 17:44:34 UTC) #8
mfomitchev
On 2016/03/29 17:44:34, xiyuan wrote: > lgtm > > Cool. > > https://codereview.chromium.org/1830293002/diff/20001/ui/app_list/app_list_shower_impl.cc > File ...
4 years, 8 months ago (2016-03-29 18:32:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830293002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830293002/140001
4 years, 8 months ago (2016-03-29 18:33:11 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/161592)
4 years, 8 months ago (2016-03-29 18:43:23 UTC) #14
mfomitchev
+sadrul for added //ui/keyboard dependency in DEPS
4 years, 8 months ago (2016-03-30 18:09:55 UTC) #17
sadrul
On 2016/03/30 18:09:55, mfomitchev wrote: > +sadrul for added //ui/keyboard dependency in DEPS Can we ...
4 years, 8 months ago (2016-03-30 18:59:55 UTC) #18
mfomitchev
On 2016/03/30 18:59:55, sadrul wrote: > On 2016/03/30 18:09:55, mfomitchev wrote: > > +sadrul for ...
4 years, 8 months ago (2016-03-30 21:10:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830293002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830293002/160001
4 years, 8 months ago (2016-03-30 21:11:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830293002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830293002/180001
4 years, 8 months ago (2016-03-30 21:29:04 UTC) #26
xiyuan
SLGTM Since we are adding a new test binary app_list_shower_unittests, please remember to follow up ...
4 years, 8 months ago (2016-04-04 17:09:30 UTC) #30
mfomitchev
> Since we are adding a new test binary app_list_shower_unittests, please remember > to follow ...
4 years, 8 months ago (2016-04-04 18:59:06 UTC) #31
mfomitchev
dpranke@chromium.org: Please review changes in testing/buildbot, BUILD.gn, build/all.gyp
4 years, 8 months ago (2016-04-05 03:26:50 UTC) #33
Dirk Pranke
lgtm
4 years, 8 months ago (2016-04-05 17:05:37 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830293002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830293002/380001
4 years, 8 months ago (2016-04-05 17:14:07 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164732)
4 years, 8 months ago (2016-04-05 17:24:58 UTC) #39
mfomitchev
+sievers for: "ui/gl/test/gl_surface_test_support.h" dependency in ui/app_list/shower/test/DEPS
4 years, 8 months ago (2016-04-05 17:30:18 UTC) #41
no sievers
On 2016/04/05 17:30:18, mfomitchev wrote: > +sievers for: > "ui/gl/test/gl_surface_test_support.h" dependency in > ui/app_list/shower/test/DEPS lgtm. ...
4 years, 8 months ago (2016-04-06 17:17:54 UTC) #42
mfomitchev
On 2016/04/06 17:17:54, sievers wrote: > On 2016/04/05 17:30:18, mfomitchev wrote: > > +sievers for: ...
4 years, 8 months ago (2016-04-06 17:35:07 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830293002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830293002/380001
4 years, 8 months ago (2016-04-06 17:35:39 UTC) #45
commit-bot: I haz the power
Committed patchset #18 (id:380001)
4 years, 8 months ago (2016-04-06 19:45:49 UTC) #47
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/216ff0ba63afa3ba3ec066d12fac41df95fdc7e0 Cr-Commit-Position: refs/heads/master@{#385526}
4 years, 8 months ago (2016-04-06 19:48:21 UTC) #49
Nico
I'm not a native speaker, but "shower" isn't something I'd associate with "noun form of ...
4 years, 8 months ago (2016-04-08 21:39:38 UTC) #51
mfomitchev
On 2016/04/08 21:39:38, Nico (hiding until Fri) wrote: > I'm not a native speaker, but ...
4 years, 8 months ago (2016-04-08 22:19:59 UTC) #52
sky
Presenter? On Fri, Apr 8, 2016 at 3:19 PM, <mfomitchev@chromium.org> wrote: > On 2016/04/08 21:39:38, ...
4 years, 8 months ago (2016-04-11 15:03:36 UTC) #53
mfomitchev
On 2016/04/11 15:03:36, sky wrote: > Presenter? > > On Fri, Apr 8, 2016 at ...
4 years, 8 months ago (2016-04-13 21:17:30 UTC) #54
mfomitchev
4 years, 8 months ago (2016-04-13 21:17:31 UTC) #55
Message was sent while issue was closed.
On 2016/04/11 15:03:36, sky wrote:
> Presenter?
> 
> On Fri, Apr 8, 2016 at 3:19 PM,  <mailto:mfomitchev@chromium.org> wrote:
> > On 2016/04/08 21:39:38, Nico (hiding until Fri) wrote:
> >> I'm not a native speaker, but "shower" isn't something I'd associate with
> > "noun
> >> form of 'to show'", but, well, a shower:
> >>
> >
>
https://www.google.com/search?q=shower&espv=2&biw=1741&bih=1490&source=lnms&t...
> >>
> >> Maybe this could have a better name.
> >>
> >> (Sorry for bikeshedding.)
> >
> > There is precedent: the functionality here is pretty similar to
> > AppListShower
> > here: chrome/browser/ui/app_list/app_list_shower_views.h, so I thought it
> > would
> > be reasonable to borrow the name. Also this old AppListShower should be
> > going
> > away soon. I'd call the new class AppListController, except we already have
> > one,
> > and it's doing something a bit different. I don't hate "shower", but if the
> > owners can agree to something better, I don't mind changing it.
> >
> > https://codereview.chromium.org/1830293002/
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.
> 

https://codereview.chromium.org/1890583002/

Powered by Google App Engine
This is Rietveld 408576698