| 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();
|
|
|