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

Issue 524503003: Refactor app list scrolling: introduce the PaginationController class. (Closed)

Created:
6 years, 3 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@ares-appgrid-vertical-scroll
Project:
chromium
Visibility:
Public.

Description

Refactor app list scrolling: introduce the PaginationController class. PaginationController abstracts over mouse wheel, touch screen and touchpad event handling for updating the PaginationModel. This allows any client of PaginationModel (ie, ContentsView) to properly handle scrolling events. It also removes the code duplication in OnMouseWheel and OnScrollEvent. BUG=406222 Committed: https://crrev.com/13cb53dbf92741bd9f432a734bb20bcb16e4ec51 Cr-Commit-Position: refs/heads/master@{#292843}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 7

Patch Set 3 : Explicit static_cast<int>. #

Total comments: 2

Patch Set 4 : Address comments. #

Patch Set 5 : Use Vector2d instead of Point for representing offsets. #

Total comments: 4

Patch Set 6 : Address comments. #

Patch Set 7 : Fix GN and Gyp. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -97 lines) Patch
M ui/app_list/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/app_list/app_list.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A ui/app_list/pagination_controller.h View 1 2 3 4 5 1 chunk +52 lines, -0 lines 0 comments Download
A ui/app_list/pagination_controller.cc View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
M ui/app_list/views/apps_grid_view.h View 4 chunks +3 lines, -6 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 1 2 3 4 5 8 chunks +18 lines, -91 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Matt Giuca
mgiuca@chromium.org changed reviewers: + calamity@chromium.org
6 years, 3 months ago (2014-08-29 06:21:33 UTC) #1
Matt Giuca
6 years, 3 months ago (2014-08-29 06:21:33 UTC) #2
calamity
https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.cc File ui/app_list/pagination_controller.cc (right): https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.cc#newcode34 ui/app_list/pagination_controller.cc:34: if (abs(offset.x()) > abs(offset.y())) Ternary operator? https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.h File ui/app_list/pagination_controller.h ...
6 years, 3 months ago (2014-09-01 01:49:30 UTC) #3
Matt Giuca
https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.cc File ui/app_list/pagination_controller.cc (right): https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.cc#newcode34 ui/app_list/pagination_controller.cc:34: if (abs(offset.x()) > abs(offset.y())) Mmkay (even though it would ...
6 years, 3 months ago (2014-09-01 03:02:26 UTC) #4
Matt Giuca
And decided to switch from Point to Vector2d for proper semantics.
6 years, 3 months ago (2014-09-01 04:23:27 UTC) #5
calamity
lgtm https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.h File ui/app_list/pagination_controller.h (right): https://codereview.chromium.org/524503003/diff/20001/ui/app_list/pagination_controller.h#newcode39 ui/app_list/pagination_controller.h:39: bool OnScroll(const gfx::Point& offset); On 2014/09/01 03:02:26, Matt ...
6 years, 3 months ago (2014-09-01 05:50:32 UTC) #6
Matt Giuca
https://codereview.chromium.org/524503003/diff/80001/ui/app_list/pagination_controller.h File ui/app_list/pagination_controller.h (right): https://codereview.chromium.org/524503003/diff/80001/ui/app_list/pagination_controller.h#newcode42 ui/app_list/pagination_controller.h:42: // PaginationModel. Returns true if the event was handled. ...
6 years, 3 months ago (2014-09-01 06:03:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/524503003/100001
6 years, 3 months ago (2014-09-01 06:06:30 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-01 07:02:58 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/524503003/120001
6 years, 3 months ago (2014-09-01 07:08:46 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:120001) as e2fd050124aa12982e7febc9e8069e5b2d7f8eaa
6 years, 3 months ago (2014-09-01 08:05:47 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:15:52 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/13cb53dbf92741bd9f432a734bb20bcb16e4ec51
Cr-Commit-Position: refs/heads/master@{#292843}

Powered by Google App Engine
This is Rietveld 408576698