Commit 5f74261a authored by mgiuca's avatar mgiuca Committed by Commit bot

ContentsView pagination model honours kPageTransitionDurationInMs.

This slows top-level app list page transitions from 120ms to 180ms.

BUG=406222

Review URL: https://codereview.chromium.org/559853003

Cr-Commit-Position: refs/heads/master@{#294126}
parent 712add90
...@@ -32,6 +32,8 @@ ContentsView::ContentsView(AppListMainView* app_list_main_view) ...@@ -32,6 +32,8 @@ ContentsView::ContentsView(AppListMainView* app_list_main_view)
contents_switcher_view_(NULL), contents_switcher_view_(NULL),
view_model_(new views::ViewModel), view_model_(new views::ViewModel),
page_before_search_(0) { page_before_search_(0) {
pagination_model_.SetTransitionDurations(kPageTransitionDurationInMs,
kOverscrollPageTransitionDurationMs);
pagination_model_.AddObserver(this); pagination_model_.AddObserver(this);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment