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/macros.h" | 10 #include "base/macros.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Gets the PaginationModel owned by the AppsGridView. | 88 // Gets the PaginationModel owned by the AppsGridView. |
89 PaginationModel* GetAppsPaginationModel(); | 89 PaginationModel* GetAppsPaginationModel(); |
90 | 90 |
91 // Loads icon image for the apps in the selected page of |pagination_model_|. | 91 // Loads icon image for the apps in the selected page of |pagination_model_|. |
92 // |parent| is used to determine the image scale factor to use. | 92 // |parent| is used to determine the image scale factor to use. |
93 void PreloadIcons(gfx::NativeView parent); | 93 void PreloadIcons(gfx::NativeView parent); |
94 | 94 |
95 // Invoked when |icon_loading_wait_timer_| fires. | 95 // Invoked when |icon_loading_wait_timer_| fires. |
96 void OnIconLoadingWaitTimer(); | 96 void OnIconLoadingWaitTimer(); |
97 | 97 |
98 // Invoked from an IconLoader when icon loading is finished. | 98 // Invoked from an IconLoader when icon loading is finished or item is closed. |
99 void OnItemIconLoaded(IconLoader* loader); | 99 void OnIconLoaderFinished(IconLoader* loader); |
100 | 100 |
101 // Overridden from AppsGridViewDelegate: | 101 // Overridden from AppsGridViewDelegate: |
102 void ActivateApp(AppListItem* item, int event_flags) override; | 102 void ActivateApp(AppListItem* item, int event_flags) override; |
103 void CancelDragInActiveFolder() override; | 103 void CancelDragInActiveFolder() override; |
104 | 104 |
105 // Overridden from SearchBoxViewDelegate: | 105 // Overridden from SearchBoxViewDelegate: |
106 void QueryChanged(SearchBoxView* sender) override; | 106 void QueryChanged(SearchBoxView* sender) override; |
107 void BackButtonPressed() override; | 107 void BackButtonPressed() override; |
108 void SetSearchResultSelection(bool select) override; | 108 void SetSearchResultSelection(bool select) override; |
109 | 109 |
(...skipping 14 matching lines...) Expand all Loading... |
124 ScopedVector<IconLoader> pending_icon_loaders_; | 124 ScopedVector<IconLoader> pending_icon_loaders_; |
125 | 125 |
126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 128 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace app_list | 131 } // namespace app_list |
132 | 132 |
133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |