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 <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Gets the index of a launcher page in |view_model_|, by State. Returns | 87 // Gets the index of a launcher page in |view_model_|, by State. Returns |
88 // -1 if there is no view for |state|. | 88 // -1 if there is no view for |state|. |
89 int GetPageIndexForState(AppListModel::State state) const; | 89 int GetPageIndexForState(AppListModel::State state) const; |
90 | 90 |
91 // Gets the state of a launcher page in |view_model_|, by index. Returns | 91 // Gets the state of a launcher page in |view_model_|, by index. Returns |
92 // INVALID_STATE if there is no state for |index|. | 92 // INVALID_STATE if there is no state for |index|. |
93 AppListModel::State GetStateForPageIndex(int index) const; | 93 AppListModel::State GetStateForPageIndex(int index) const; |
94 | 94 |
95 int NumLauncherPages() const; | 95 int NumLauncherPages() const; |
96 | 96 |
97 void Prerender(); | |
98 | |
99 AppsContainerView* apps_container_view() const { | 97 AppsContainerView* apps_container_view() const { |
100 return apps_container_view_; | 98 return apps_container_view_; |
101 } | 99 } |
102 StartPageView* start_page_view() const { return start_page_view_; } | 100 StartPageView* start_page_view() const { return start_page_view_; } |
103 CustomLauncherPageView* custom_page_view() const { return custom_page_view_; } | 101 CustomLauncherPageView* custom_page_view() const { return custom_page_view_; } |
104 SearchResultPageView* search_results_page_view() { | 102 SearchResultPageView* search_results_page_view() { |
105 return search_results_page_view_; | 103 return search_results_page_view_; |
106 } | 104 } |
107 AppListPage* GetPageView(int index) const; | 105 AppListPage* GetPageView(int index) const; |
108 | 106 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 204 |
207 // Manages the pagination for the launcher pages. | 205 // Manages the pagination for the launcher pages. |
208 PaginationModel pagination_model_; | 206 PaginationModel pagination_model_; |
209 | 207 |
210 DISALLOW_COPY_AND_ASSIGN(ContentsView); | 208 DISALLOW_COPY_AND_ASSIGN(ContentsView); |
211 }; | 209 }; |
212 | 210 |
213 } // namespace app_list | 211 } // namespace app_list |
214 | 212 |
215 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ | 213 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ |
OLD | NEW |