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

Issue 497413003: Refactor app list event handling and prerendering. (Closed)

Created:
6 years, 4 months ago by Matt Giuca
Modified:
6 years, 3 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor app list event handling and prerendering. ContentsView should not be responsible for apps-grid-specific logic. To this end, moved scroll and gesture event handling from ContentsView to AppsGridView, removing the special cases for NAMED_PAGE_APPS. Also moved some of the prerender logic from ContentsView to AppsGridView. BUG=377381 Committed: https://crrev.com/e407013f55b72cb9e0a86aec541bd8eba5efe90f Cr-Commit-Position: refs/heads/master@{#292591}

Patch Set 1 #

Patch Set 2 : Moved some app-grid-specific logic from ContentsView to AppsGridView. #

Total comments: 4

Patch Set 3 : Moved scrolling event handlers from AppsContainerView to AppsGridView. #

Total comments: 5

Patch Set 4 : Reorder in .cc file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -100 lines) Patch
M ui/app_list/views/apps_grid_view.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 3 4 chunks +78 lines, -3 lines 0 comments Download
M ui/app_list/views/contents_view.h View 2 chunks +0 lines, -5 lines 0 comments Download
M ui/app_list/views/contents_view.cc View 1 2 3 4 chunks +1 line, -90 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Matt Giuca
mgiuca@chromium.org changed reviewers: + calamity@chromium.org
6 years, 4 months ago (2014-08-26 04:53:02 UTC) #1
Matt Giuca
Hmm, so I'll have to put almost-the-same logic *back* into ContentsView when I handle scrolling ...
6 years, 4 months ago (2014-08-26 04:53:03 UTC) #2
Matt Giuca
I decided to move a bit more logic in the same CL (Patch Set 2).
6 years, 4 months ago (2014-08-26 05:20:14 UTC) #3
calamity
https://codereview.chromium.org/497413003/diff/20001/ui/app_list/views/apps_container_view.h File ui/app_list/views/apps_container_view.h (right): https://codereview.chromium.org/497413003/diff/20001/ui/app_list/views/apps_container_view.h#newcode69 ui/app_list/views/apps_container_view.h:69: virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; Should this be part ...
6 years, 4 months ago (2014-08-26 08:12:34 UTC) #4
Matt Giuca
https://codereview.chromium.org/497413003/diff/20001/ui/app_list/views/apps_container_view.h File ui/app_list/views/apps_container_view.h (right): https://codereview.chromium.org/497413003/diff/20001/ui/app_list/views/apps_container_view.h#newcode69 ui/app_list/views/apps_container_view.h:69: virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; On 2014/08/26 08:12:34, calamity ...
6 years, 3 months ago (2014-08-28 00:35:21 UTC) #5
calamity
https://codereview.chromium.org/497413003/diff/40001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/497413003/diff/40001/ui/app_list/views/apps_grid_view.cc#newcode899 ui/app_list/views/apps_grid_view.cc:899: void AppsGridView::OnGestureEvent(ui::GestureEvent* event) { nit: May as well move ...
6 years, 3 months ago (2014-08-29 04:15:10 UTC) #6
Matt Giuca
https://codereview.chromium.org/497413003/diff/40001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/497413003/diff/40001/ui/app_list/views/apps_grid_view.cc#newcode899 ui/app_list/views/apps_grid_view.cc:899: void AppsGridView::OnGestureEvent(ui::GestureEvent* event) { On 2014/08/29 04:15:09, calamity wrote: ...
6 years, 3 months ago (2014-08-29 06:28:19 UTC) #7
calamity
lgtm
6 years, 3 months ago (2014-08-29 07:43:52 UTC) #8
Matt Giuca
https://codereview.chromium.org/497413003/diff/40001/ui/app_list/views/apps_grid_view.cc File ui/app_list/views/apps_grid_view.cc (right): https://codereview.chromium.org/497413003/diff/40001/ui/app_list/views/apps_grid_view.cc#newcode900 ui/app_list/views/apps_grid_view.cc:900: switch (event->type()) { Ugh, I can't test on ChromeOS ...
6 years, 3 months ago (2014-08-29 07:47:28 UTC) #9
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 3 months ago (2014-08-29 07:48:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/497413003/60001
6 years, 3 months ago (2014-08-29 07:48:28 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as f549ba9d967fad99f631b8cd7e3fede076f732e1
6 years, 3 months ago (2014-08-29 08:45:17 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:07:01 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e407013f55b72cb9e0a86aec541bd8eba5efe90f
Cr-Commit-Position: refs/heads/master@{#292591}

Powered by Google App Engine
This is Rietveld 408576698