blob: cf3334c5e632f77ad9de0121e7c95f34c91e0120 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_APP_LIST_PAGINATION_MODEL_OBSERVER_H_
#define ASH_APP_LIST_PAGINATION_MODEL_OBSERVER_H_
#include "ash/app_list/app_list_export.h"
namespace app_list {
class APP_LIST_EXPORT PaginationModelObserver {
public:
// Invoked when the total number of page is changed.
virtual void TotalPagesChanged() = 0;
// Invoked when the selected page index is changed.
virtual void SelectedPageChanged(int old_selected, int new_selected) = 0;
// Invoked when a transition starts.
virtual void TransitionStarted() = 0;
// Invoked when the transition data is changed.
virtual void TransitionChanged() = 0;
// Invoked when a transition ends.
virtual void TransitionEnded() = 0;
// Invoked when a grid scroll starts.
virtual void ScrollStarted() {}
// Invoked when a grid scroll ends.
virtual void ScrollEnded() {}
protected:
virtual ~PaginationModelObserver() {}
};
} // namespace app_list
#endif // ASH_APP_LIST_PAGINATION_MODEL_OBSERVER_H_