Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: ui/app_list/views/contents_view.h

Issue 896633005: Remove separate SearchResultListView from ContentsView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate_start_page_tile_container
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
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 PaginationModel; 35 class PaginationModel;
36 class SearchBoxView; 36 class SearchBoxView;
37 class SearchResultListView;
38 class SearchResultPageView; 37 class SearchResultPageView;
39 class StartPageView; 38 class StartPageView;
40 39
41 // A view to manage launcher pages within the Launcher (eg. start page, apps 40 // A view to manage launcher pages within the Launcher (eg. start page, apps
42 // grid view, search results). There can be any number of launcher pages, only 41 // grid view, search results). There can be any number of launcher pages, only
43 // one of which can be active at a given time. ContentsView provides the user 42 // one of which can be active at a given time. ContentsView provides the user
44 // interface for switching between launcher pages, and animates the transition 43 // interface for switching between launcher pages, and animates the transition
45 // between them. 44 // between them.
46 class APP_LIST_EXPORT ContentsView : public views::View, 45 class APP_LIST_EXPORT ContentsView : public views::View,
47 public PaginationModelObserver { 46 public PaginationModelObserver {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 92
94 int NumLauncherPages() const; 93 int NumLauncherPages() const;
95 94
96 void Prerender(); 95 void Prerender();
97 96
98 AppsContainerView* apps_container_view() const { 97 AppsContainerView* apps_container_view() const {
99 return apps_container_view_; 98 return apps_container_view_;
100 } 99 }
101 StartPageView* start_page_view() const { return start_page_view_; } 100 StartPageView* start_page_view() const { return start_page_view_; }
102 views::View* custom_page_view() const { return custom_page_view_; } 101 views::View* custom_page_view() const { return custom_page_view_; }
103 SearchResultListView* search_results_list_view() const {
104 return search_results_list_view_;
105 }
106 SearchResultPageView* search_results_page_view() { 102 SearchResultPageView* search_results_page_view() {
107 return search_results_page_view_; 103 return search_results_page_view_;
108 } 104 }
109 views::View* GetPageView(int index) const; 105 views::View* GetPageView(int index) const;
110 106
111 SearchBoxView* GetSearchBoxView() const; 107 SearchBoxView* GetSearchBoxView() const;
112 108
113 AppListMainView* app_list_main_view() const { return app_list_main_view_; } 109 AppListMainView* app_list_main_view() const { return app_list_main_view_; }
114 110
115 // Adds a blank launcher page. For use in tests only. 111 // Adds a blank launcher page. For use in tests only.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // the animator should be run in reverse (because it is a |to_page| to 205 // the animator should be run in reverse (because it is a |to_page| to
210 // |from_page| animator), |reverse| is set to true; otherwise it is set to 206 // |from_page| animator), |reverse| is set to true; otherwise it is set to
211 // false. 207 // false.
212 ContentsAnimator* GetAnimatorForTransition(int from_page, 208 ContentsAnimator* GetAnimatorForTransition(int from_page,
213 int to_page, 209 int to_page,
214 bool* reverse) const; 210 bool* reverse) const;
215 211
216 // Special sub views of the ContentsView. All owned by the views hierarchy. 212 // Special sub views of the ContentsView. All owned by the views hierarchy.
217 AppsContainerView* apps_container_view_; 213 AppsContainerView* apps_container_view_;
218 214
219 // Only used in the normal app list. 215 SearchResultPageView* search_results_page_view_;
220 SearchResultListView* search_results_list_view_;
221 216
222 // Only used in the experimental app list. 217 // Only used in the experimental app list.
223 SearchResultPageView* search_results_page_view_;
224 StartPageView* start_page_view_; 218 StartPageView* start_page_view_;
225 views::View* custom_page_view_; 219 views::View* custom_page_view_;
226 220
227 AppListMainView* app_list_main_view_; // Parent view, owns this. 221 AppListMainView* app_list_main_view_; // Parent view, owns this.
228 222
229 scoped_ptr<views::ViewModel> view_model_; 223 scoped_ptr<views::ViewModel> view_model_;
230 224
231 // Maps State onto |view_model_| indices. 225 // Maps State onto |view_model_| indices.
232 std::map<AppListModel::State, int> state_to_view_; 226 std::map<AppListModel::State, int> state_to_view_;
233 227
(...skipping 13 matching lines...) Expand all
247 241
248 // The animator for transitions not found in |contents_animators_|. 242 // The animator for transitions not found in |contents_animators_|.
249 scoped_ptr<ContentsAnimator> default_animator_; 243 scoped_ptr<ContentsAnimator> default_animator_;
250 244
251 DISALLOW_COPY_AND_ASSIGN(ContentsView); 245 DISALLOW_COPY_AND_ASSIGN(ContentsView);
252 }; 246 };
253 247
254 } // namespace app_list 248 } // namespace app_list
255 249
256 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_ 250 #endif // UI_APP_LIST_VIEWS_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698