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

Issue 316393002: App list uses PaginationModel to transition between pages. (Closed)

Created:
6 years, 6 months ago by Matt Giuca
Modified:
6 years, 6 months ago
Reviewers:
benwells, calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

App list uses PaginationModel to transition between pages. Should not affect behaviour of the normal app list. The experimental app list now transitions pages in from the correct side of the screen, instead of simply sliding pages out to the left. BUG=377381 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278361

Patch Set 1 #

Patch Set 2 : Fixed tests and bugs. #

Patch Set 3 : Rebase. #

Total comments: 11

Patch Set 4 : Nit. #

Patch Set 5 : Change CalculateAndSetBounds to UpdatePageBounds; now always directly sets bounds. #

Patch Set 6 : Layout() now ends the current animation; don't need FinishCurrentAnimationForTests. #

Patch Set 7 : Wrote Layout tests, and rewrote Layout to behave correctly. #

Patch Set 8 : Remove animate argument from UpdatePageBounds. #

Patch Set 9 : Wrote Layout tests, and rewrote Layout to behave correctly. #

Patch Set 10 : Rebase. #

Patch Set 11 : Fixed tests -- adds blank pages so we have 3 pages in the test environment. #

Total comments: 4

Patch Set 12 : Minor reformatting. #

Patch Set 13 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -63 lines) Patch
M ui/app_list/pagination_model.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M ui/app_list/pagination_model.cc View 1 2 3 4 5 3 chunks +19 lines, -8 lines 0 comments Download
M ui/app_list/views/app_list_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +55 lines, -0 lines 0 comments Download
M ui/app_list/views/contents_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +25 lines, -9 lines 0 comments Download
M ui/app_list/views/contents_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +91 lines, -46 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Matt Giuca
Slideys! calamity: For full review please. benwells: For OWNERS. Note that we're using PaginationModel for ...
6 years, 6 months ago (2014-06-06 04:36:25 UTC) #1
Matt Giuca
Actually, please don't review this. There are numerous issues (notably, the performance is quite bad ...
6 years, 6 months ago (2014-06-06 05:56:46 UTC) #2
Matt Giuca
OK, ready for review now! The performance issue is fixed in https://codereview.chromium.org/326023002/ (in the CQ ...
6 years, 6 months ago (2014-06-10 08:50:17 UTC) #3
calamity
https://codereview.chromium.org/316393002/diff/80001/ui/app_list/views/contents_view.cc File ui/app_list/views/contents_view.cc (right): https://codereview.chromium.org/316393002/diff/80001/ui/app_list/views/contents_view.cc#newcode136 ui/app_list/views/contents_view.cc:136: int current_page = std::max(0, pagination_model_.selected_page()); When can this be ...
6 years, 6 months ago (2014-06-12 03:05:08 UTC) #4
calamity
https://codereview.chromium.org/316393002/diff/80001/ui/app_list/views/app_list_view_unittest.cc File ui/app_list/views/app_list_view_unittest.cc (right): https://codereview.chromium.org/316393002/diff/80001/ui/app_list/views/app_list_view_unittest.cc#newcode295 ui/app_list/views/app_list_view_unittest.cc:295: contents_view->FinishCurrentAnimationForTests(); If Layout() sets everything to "where it ends ...
6 years, 6 months ago (2014-06-12 03:26:54 UTC) #5
Matt Giuca
https://codereview.chromium.org/316393002/diff/80001/ui/app_list/views/contents_view.cc File ui/app_list/views/contents_view.cc (right): https://codereview.chromium.org/316393002/diff/80001/ui/app_list/views/contents_view.cc#newcode136 ui/app_list/views/contents_view.cc:136: int current_page = std::max(0, pagination_model_.selected_page()); pagination_model_.selected_page() is -1 by ...
6 years, 6 months ago (2014-06-16 00:59:05 UTC) #6
Matt Giuca
OK after a lot of nitty fixes (rewriting Layout mostly) and testing, ready for another ...
6 years, 6 months ago (2014-06-16 07:20:28 UTC) #7
calamity
I believe view_model_ is just copying the child view order in ContentsView now. It should ...
6 years, 6 months ago (2014-06-17 05:43:45 UTC) #8
Matt Giuca
https://codereview.chromium.org/316393002/diff/250001/ui/app_list/views/contents_view.cc File ui/app_list/views/contents_view.cc (right): https://codereview.chromium.org/316393002/diff/250001/ui/app_list/views/contents_view.cc#newcode162 ui/app_list/views/contents_view.cc:162: // the state of the PaginationModel). To the second ...
6 years, 6 months ago (2014-06-17 06:04:07 UTC) #9
benwells
had a quick glance. lgtm.
6 years, 6 months ago (2014-06-19 00:31:44 UTC) #10
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 6 months ago (2014-06-19 00:32:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/316393002/270001
6 years, 6 months ago (2014-06-19 00:33:42 UTC) #12
Matt Giuca
The CQ bit was checked by mgiuca@chromium.org
6 years, 6 months ago (2014-06-19 01:10:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/316393002/290001
6 years, 6 months ago (2014-06-19 01:11:35 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 14:31:57 UTC) #15
Message was sent while issue was closed.
Change committed as 278361

Powered by Google App Engine
This is Rietveld 408576698