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_CONTENTS_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace app_list { | 26 namespace app_list { |
27 | 27 |
28 class AppsGridView; | 28 class AppsGridView; |
29 class ApplicationDragAndDropHost; | 29 class ApplicationDragAndDropHost; |
30 class AppListFolderItem; | 30 class AppListFolderItem; |
31 class AppListMainView; | 31 class AppListMainView; |
32 class AppListViewDelegate; | 32 class AppListViewDelegate; |
33 class AppsContainerView; | 33 class AppsContainerView; |
34 class ContentsAnimator; | 34 class ContentsAnimator; |
| 35 class DefaultAnimator; |
35 class PaginationModel; | 36 class PaginationModel; |
36 class SearchBoxView; | 37 class SearchBoxView; |
37 class SearchResultPageView; | 38 class SearchResultPageView; |
38 class StartPageView; | 39 class StartPageView; |
39 | 40 |
40 // A view to manage launcher pages within the Launcher (eg. start page, apps | 41 // A view to manage launcher pages within the Launcher (eg. start page, apps |
41 // grid view, search results). There can be any number of launcher pages, only | 42 // grid view, search results). There can be any number of launcher pages, only |
42 // one of which can be active at a given time. ContentsView provides the user | 43 // one of which can be active at a given time. ContentsView provides the user |
43 // interface for switching between launcher pages, and animates the transition | 44 // interface for switching between launcher pages, and animates the transition |
44 // between them. | 45 // between them. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 234 |
234 // Manages the pagination for the launcher pages. | 235 // Manages the pagination for the launcher pages. |
235 PaginationModel pagination_model_; | 236 PaginationModel pagination_model_; |
236 | 237 |
237 // Maps from {A, B} pair to ContentsAnimator, where A and B are page | 238 // Maps from {A, B} pair to ContentsAnimator, where A and B are page |
238 // |view_model_| indices for an animation from A to B. | 239 // |view_model_| indices for an animation from A to B. |
239 std::map<std::pair<int, int>, linked_ptr<ContentsAnimator>> | 240 std::map<std::pair<int, int>, linked_ptr<ContentsAnimator>> |
240 contents_animators_; | 241 contents_animators_; |
241 | 242 |
242 // The animator for transitions not found in |contents_animators_|. | 243 // The animator for transitions not found in |contents_animators_|. |
243 scoped_ptr<ContentsAnimator> default_animator_; | 244 scoped_ptr<DefaultAnimator> default_animator_; |
244 | 245 |
245 DISALLOW_COPY_AND_ASSIGN(ContentsView); | 246 DISALLOW_COPY_AND_ASSIGN(ContentsView); |
246 }; | 247 }; |
247 | 248 |
248 } // namespace app_list | 249 } // namespace app_list |
249 | 250 |
250 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 251 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
OLD | NEW |