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

Unified Diff: ui/app_list/pagination_model.h

Issue 316393002: App list uses PaginationModel to transition between pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 6 months 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 | « no previous file | 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 0546adc4bf894573f1d95ab5994e94d56eeed7d5..af302308c42508f65d897b4ff4ee05891d6cf677 100644
--- a/ui/app_list/pagination_model.h
+++ b/ui/app_list/pagination_model.h
@@ -59,6 +59,10 @@ class APP_LIST_EXPORT PaginationModel : public gfx::AnimationDelegate {
// Selects a page by relative |delta|.
void SelectPageRelative(int delta, bool animate);
+ // Immediately completes all queued animations, jumping directly to the final
+ // target page.
+ void FinishAnimation();
+
void SetTransition(const Transition& transition);
void SetTransitionDurations(int duration_ms, int overscroll_duration_ms);
@@ -93,6 +97,10 @@ class APP_LIST_EXPORT PaginationModel : public gfx::AnimationDelegate {
return transition_.target_page != -1 || transition_.progress != 0;
}
+ // Gets the page that the animation will eventually land on. If there is no
+ // active animation, just returns selected_page().
+ int SelectedTargetPage() const;
+
private:
void NotifySelectedPageChanged(int old_selected, int new_selected);
void NotifyTransitionStarted();
« no previous file with comments | « no previous file | ui/app_list/pagination_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698