OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LIST_MAIN_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void OnStartPageSearchButtonPressed(); | 58 void OnStartPageSearchButtonPressed(); |
59 | 59 |
60 SearchBoxView* search_box_view() const { return search_box_view_; } | 60 SearchBoxView* search_box_view() const { return search_box_view_; } |
61 | 61 |
62 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 62 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
63 // operations outside the application list. | 63 // operations outside the application list. |
64 void SetDragAndDropHostOfCurrentAppList( | 64 void SetDragAndDropHostOfCurrentAppList( |
65 ApplicationDragAndDropHost* drag_and_drop_host); | 65 ApplicationDragAndDropHost* drag_and_drop_host); |
66 | 66 |
67 ContentsView* contents_view() const { return contents_view_; } | 67 ContentsView* contents_view() const { return contents_view_; } |
| 68 AppListModel* model() { return model_; } |
68 | 69 |
69 // Returns true if the app list should be centered and in landscape mode. | 70 // Returns true if the app list should be centered and in landscape mode. |
70 bool ShouldCenterWindow() const; | 71 bool ShouldCenterWindow() const; |
71 | 72 |
72 private: | 73 private: |
73 class IconLoader; | 74 class IconLoader; |
74 | 75 |
75 void AddContentsView(); | 76 void AddContentsView(); |
76 | 77 |
77 // Gets the PaginationModel owned by the AppsGridView. | 78 // Gets the PaginationModel owned by the AppsGridView. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ScopedVector<IconLoader> pending_icon_loaders_; | 117 ScopedVector<IconLoader> pending_icon_loaders_; |
117 | 118 |
118 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 119 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
119 | 120 |
120 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 121 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
121 }; | 122 }; |
122 | 123 |
123 } // namespace app_list | 124 } // namespace app_list |
124 | 125 |
125 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 126 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |