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 27 matching lines...) Expand all Loading... |
38 public SearchResultListViewDelegate { | 38 public SearchResultListViewDelegate { |
39 public: | 39 public: |
40 // Takes ownership of |delegate|. | 40 // Takes ownership of |delegate|. |
41 explicit AppListMainView(AppListViewDelegate* delegate, | 41 explicit AppListMainView(AppListViewDelegate* delegate, |
42 PaginationModel* pagination_model, | 42 PaginationModel* pagination_model, |
43 gfx::NativeView parent); | 43 gfx::NativeView parent); |
44 virtual ~AppListMainView(); | 44 virtual ~AppListMainView(); |
45 | 45 |
46 void ShowAppListWhenReady(); | 46 void ShowAppListWhenReady(); |
47 | 47 |
| 48 void ResetForShow(); |
| 49 |
48 void Close(); | 50 void Close(); |
49 | 51 |
50 void Prerender(); | 52 void Prerender(); |
51 | 53 |
52 void ModelChanged(); | 54 void ModelChanged(); |
53 | 55 |
54 SearchBoxView* search_box_view() const { return search_box_view_; } | 56 SearchBoxView* search_box_view() const { return search_box_view_; } |
55 | 57 |
56 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 58 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
57 // operations outside the application list. | 59 // operations outside the application list. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 ScopedVector<IconLoader> pending_icon_loaders_; | 107 ScopedVector<IconLoader> pending_icon_loaders_; |
106 | 108 |
107 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 109 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 111 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
110 }; | 112 }; |
111 | 113 |
112 } // namespace app_list | 114 } // namespace app_list |
113 | 115 |
114 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 116 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |