Home | History | Annotate | Download | only in app_list

Lines Matching refs:Transition

29   // Holds info for transition animation and touch scroll.
30 struct Transition {
31 Transition(int target_page, double progress)
36 bool Equals(const Transition& rhs) const {
40 // Target page for the transition or -1 if there is no target page. For
56 // Selects a page. |animate| is true if the transition should be animated.
66 void SetTransition(const Transition& transition);
69 // Starts a scroll transition. If there is a running transition animation,
70 // cancels it but keeps the transition info.
73 // Updates transition progress from |delta|. |delta| > 0 means transit to
78 // Finishes the current scroll transition if |cancel| is false. Otherwise,
82 // Returns true if current transition is being reverted.
90 const Transition& transition() const { return transition_; }
110 SetTransition(Transition(-1, 0));
114 // When there is no transition, current page is the currently selected page.
115 // If there is a transition, current page is the transition target page or the
116 // pending transition target page. When current page + |delta| goes beyond
121 void StartTransitionAnimation(const Transition& transition);
131 Transition transition_;
133 // Pending selected page when SelectedPage is called during a transition. If
134 // multiple SelectPage is called while a transition is in progress, only the
139 int transition_duration_ms_; // Transition duration in millisecond.