OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_APP_LIST_PAGINATION_MODEL_OBSERVER_H_ | |
6 #define ASH_APP_LIST_PAGINATION_MODEL_OBSERVER_H_ | |
7 #pragma once | |
8 | |
9 #include "ash/ash_export.h" | |
10 | |
11 namespace ash { | |
12 | |
13 class ASH_EXPORT PaginationModelObserver { | |
14 public: | |
15 // Invoked when the total number of page is changed. | |
16 virtual void TotalPagesChanged() = 0; | |
17 | |
18 // Invoked when the selected page index is changed. | |
19 virtual void SelectedPageChanged(int old_selected, int new_selected) = 0; | |
20 | |
21 protected: | |
22 virtual ~PaginationModelObserver() {} | |
23 }; | |
24 | |
25 } // namespace ash | |
26 | |
27 #endif // ASH_APP_LIST_PAGINATION_MODEL_OBSERVER_H_ | |
OLD | NEW |