Home | History | Annotate | Download | only in app_list

Lines Matching refs:page

39 void PaginationModel::SelectPage(int page, bool animate) {
41 // -1 and |total_pages_| are valid target page for animation.
42 DCHECK(page >= -1 && page <= total_pages_);
45 if (page == selected_page_)
49 if (!is_valid_page(page)) {
52 if (page == last_overscroll_target_page_) {
60 last_overscroll_target_page_ = page;
65 StartTransitionAnimation(Transition(page, 0));
72 if (from_page == page) {
78 } else if (to_page != page) {
79 pending_selected_page_ = page;
85 DCHECK(total_pages_ == 0 || (page >= 0 && page < total_pages_));
87 if (page == selected_page_)
93 selected_page_ = page;
107 // -1 and |total_pages_| is a valid target page, which means user is at
108 // the end and there is no target page for this scroll.
132 // Translates scroll delta to desired page change direction.
185 // If no animation, or animation is in reverse, just the selected page.
189 // If, at the end of the current animation, we will animate to another page,
190 // return that eventual page.
220 // Use invalid page when |selected_page_| is at ends.
266 // If target page is not in valid range, reverse the animation.
271 // Otherwise, change page and finish the transition.
275 // Hiding animation ends. No page change should happen.