| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Gets the PaginationModel owned by the AppsGridView. | 90 // Gets the PaginationModel owned by the AppsGridView. |
| 91 PaginationModel* GetAppsPaginationModel(); | 91 PaginationModel* GetAppsPaginationModel(); |
| 92 | 92 |
| 93 // Loads icon image for the apps in the selected page of |pagination_model_|. | 93 // Loads icon image for the apps in the selected page of |pagination_model_|. |
| 94 // |parent| is used to determine the image scale factor to use. | 94 // |parent| is used to determine the image scale factor to use. |
| 95 void PreloadIcons(gfx::NativeView parent); | 95 void PreloadIcons(gfx::NativeView parent); |
| 96 | 96 |
| 97 // Invoked when |icon_loading_wait_timer_| fires. | 97 // Invoked when |icon_loading_wait_timer_| fires. |
| 98 void OnIconLoadingWaitTimer(); | 98 void OnIconLoadingWaitTimer(); |
| 99 | 99 |
| 100 // Invoked from an IconLoader when icon loading is finished. | 100 // Invoked from an IconLoader when icon loading is finished or item is closed. |
| 101 void OnItemIconLoaded(IconLoader* loader); | 101 void OnIconLoaderFinished(IconLoader* loader); |
| 102 | 102 |
| 103 // Overridden from AppsGridViewDelegate: | 103 // Overridden from AppsGridViewDelegate: |
| 104 void ActivateApp(AppListItem* item, int event_flags) override; | 104 void ActivateApp(AppListItem* item, int event_flags) override; |
| 105 void GetShortcutPathForApp( | 105 void GetShortcutPathForApp( |
| 106 const std::string& app_id, | 106 const std::string& app_id, |
| 107 const base::Callback<void(const base::FilePath&)>& callback) override; | 107 const base::Callback<void(const base::FilePath&)>& callback) override; |
| 108 void CancelDragInActiveFolder() override; | 108 void CancelDragInActiveFolder() override; |
| 109 | 109 |
| 110 // Overridden from SearchBoxViewDelegate: | 110 // Overridden from SearchBoxViewDelegate: |
| 111 void QueryChanged(SearchBoxView* sender) override; | 111 void QueryChanged(SearchBoxView* sender) override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 129 ScopedVector<IconLoader> pending_icon_loaders_; | 129 ScopedVector<IconLoader> pending_icon_loaders_; |
| 130 | 130 |
| 131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 133 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace app_list | 136 } // namespace app_list |
| 137 | 137 |
| 138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
| OLD | NEW |