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

Unified Diff: ui/app_list/pagination_model.h

Issue 11275320: app_list: Make over scroll animation faster. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/contents_view.cc ('k') | ui/app_list/pagination_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/pagination_model.h
diff --git a/ui/app_list/pagination_model.h b/ui/app_list/pagination_model.h
index d51241afca352f5dd1a6b9c6b157be60f1b839f9..9f27e42cc94615f873af336a7dafaf6394f9ca36 100644
--- a/ui/app_list/pagination_model.h
+++ b/ui/app_list/pagination_model.h
@@ -59,7 +59,7 @@ class APP_LIST_EXPORT PaginationModel : public ui::AnimationDelegate {
void SelectPageRelative(int delta, bool animate);
void SetTransition(const Transition& transition);
- void SetTransitionDuration(int duration_ms);
+ void SetTransitionDurations(int duration_ms, int overscroll_duration_ms);
// Starts a scroll transition. If there is a running transition animation,
// cancels it but keeps the transition info.
@@ -108,8 +108,7 @@ class APP_LIST_EXPORT PaginationModel : public ui::AnimationDelegate {
// -1 or |total_pages_| is returned to indicate the situation.
int CalculateTargetPage(int delta) const;
- void StartTranstionAnimation(int target_page);
- void CreateTransitionAnimation();
+ void StartTransitionAnimation(const Transition& transition);
void ResetTransitionAnimation();
// ui::AnimationDelegate overrides:
@@ -128,6 +127,7 @@ class APP_LIST_EXPORT PaginationModel : public ui::AnimationDelegate {
scoped_ptr<ui::SlideAnimation> transition_animation_;
int transition_duration_ms_; // Transition duration in millisecond.
+ int overscroll_transition_duration_ms_;
ObserverList<PaginationModelObserver> observers_;
« no previous file with comments | « ui/app_list/contents_view.cc ('k') | ui/app_list/pagination_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698