OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_APP_LIST_VIEWS_PAGE_SWITCHER_H_ | 5 #ifndef UI_APP_LIST_VIEWS_PAGE_SWITCHER_H_ |
6 #define UI_APP_LIST_VIEWS_PAGE_SWITCHER_H_ | 6 #define UI_APP_LIST_VIEWS_PAGE_SWITCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ui/app_list/pagination_model_observer.h" | 9 #include "ui/app_list/pagination_model_observer.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Overridden from views::ButtonListener: | 43 // Overridden from views::ButtonListener: |
44 virtual void ButtonPressed(views::Button* sender, | 44 virtual void ButtonPressed(views::Button* sender, |
45 const ui::Event& event) OVERRIDE; | 45 const ui::Event& event) OVERRIDE; |
46 | 46 |
47 // Overridden from PaginationModelObserver: | 47 // Overridden from PaginationModelObserver: |
48 virtual void TotalPagesChanged() OVERRIDE; | 48 virtual void TotalPagesChanged() OVERRIDE; |
49 virtual void SelectedPageChanged(int old_selected, int new_selected) OVERRIDE; | 49 virtual void SelectedPageChanged(int old_selected, int new_selected) OVERRIDE; |
50 virtual void TransitionStarted() OVERRIDE; | 50 virtual void TransitionStarted() OVERRIDE; |
51 virtual void TransitionChanged() OVERRIDE; | 51 virtual void TransitionChanged() OVERRIDE; |
52 | 52 |
53 PaginationModel* model_; // Owned by AppListController. | 53 PaginationModel* model_; // Owned by AppsGridView. |
54 views::View* buttons_; // Owned by views hierarchy. | 54 views::View* buttons_; // Owned by views hierarchy. |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(PageSwitcher); | 56 DISALLOW_COPY_AND_ASSIGN(PageSwitcher); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace app_list | 59 } // namespace app_list |
60 | 60 |
61 #endif // UI_APP_LIST_VIEWS_PAGE_SWITCHER_H_ | 61 #endif // UI_APP_LIST_VIEWS_PAGE_SWITCHER_H_ |
OLD | NEW |