OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 ASH_APP_LIST_APP_LIST_GROUPS_VIEW_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_GROUPS_VIEW_H_ |
6 #define ASH_APP_LIST_APP_LIST_GROUPS_VIEW_H_ | 6 #define ASH_APP_LIST_APP_LIST_GROUPS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
13 #include "ui/base/models/list_model_observer.h" | 13 #include "ui/base/models/list_model_observer.h" |
14 #include "ui/views/controls/button/button.h" | 14 #include "ui/views/controls/button/button.h" |
15 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class BoundsAnimator; | 18 class BoundsAnimator; |
19 } | 19 } |
20 | 20 |
21 namespace aura_shell { | 21 namespace ash { |
22 | 22 |
23 class AppListItemGroupView; | 23 class AppListItemGroupView; |
24 class AppListItemViewListener; | 24 class AppListItemViewListener; |
25 class AppListModel; | 25 class AppListModel; |
26 | 26 |
27 // AppListGroupsView displays the UI for an AppListModel. If there are more than | 27 // AppListGroupsView displays the UI for an AppListModel. If there are more than |
28 // one group in the model , a button strip is displayed to allow user to switch | 28 // one group in the model , a button strip is displayed to allow user to switch |
29 // between pages. | 29 // between pages. |
30 class ASH_EXPORT AppListGroupsView : public views::View, | 30 class ASH_EXPORT AppListGroupsView : public views::View, |
31 public views::ButtonListener, | 31 public views::ButtonListener, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 std::vector<AppListItemGroupView*> pages_; | 73 std::vector<AppListItemGroupView*> pages_; |
74 views::View* page_buttons_; | 74 views::View* page_buttons_; |
75 int current_page_; | 75 int current_page_; |
76 | 76 |
77 scoped_ptr<views::BoundsAnimator> animator_; | 77 scoped_ptr<views::BoundsAnimator> animator_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(AppListGroupsView); | 79 DISALLOW_COPY_AND_ASSIGN(AppListGroupsView); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace aura_shell | 82 } // namespace ash |
83 | 83 |
84 #endif // ASH_APP_LIST_APP_LIST_GROUPS_VIEW_H_ | 84 #endif // ASH_APP_LIST_APP_LIST_GROUPS_VIEW_H_ |
OLD | NEW |