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

Unified Diff: ui/app_list/pagination_model.h

Issue 10961020: cros: Fix mouse over-scroll animation not happening. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix jumping around when mouse is hovering on an item Created 8 years, 3 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 | « ui/app_list/apps_grid_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 70262948c064bc0ec31993d60de69812e4b54698..d51241afca352f5dd1a6b9c6b157be60f1b839f9 100644
--- a/ui/app_list/pagination_model.h
+++ b/ui/app_list/pagination_model.h
@@ -74,13 +74,15 @@ class APP_LIST_EXPORT PaginationModel : public ui::AnimationDelegate {
// reverses it.
void EndScroll(bool cancel);
+ // Returns true if current transition is being reverted.
+ bool IsRevertingCurrentTransition() const;
+
void AddObserver(PaginationModelObserver* observer);
void RemoveObserver(PaginationModelObserver* observer);
int total_pages() const { return total_pages_; }
int selected_page() const { return selected_page_; }
const Transition& transition() const { return transition_; }
- bool scrolling() const { return scrolling_; }
bool is_valid_page(int page) const {
return page >= 0 && page < total_pages_;
@@ -119,8 +121,6 @@ class APP_LIST_EXPORT PaginationModel : public ui::AnimationDelegate {
Transition transition_;
- bool scrolling_; // Whether a scroll is in progress.
-
// Pending selected page when SelectedPage is called during a transition. If
// multiple SelectPage is called while a transition is in progress, only the
// last target page is remembered here.
« no previous file with comments | « ui/app_list/apps_grid_view.cc ('k') | ui/app_list/pagination_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698