| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 void Prerender(); | 50 void Prerender(); |
| 51 | 51 |
| 52 SearchBoxView* search_box_view() const { return search_box_view_; } | 52 SearchBoxView* search_box_view() const { return search_box_view_; } |
| 53 | 53 |
| 54 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 54 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
| 55 // operations outside the application list. | 55 // operations outside the application list. |
| 56 void SetDragAndDropHostOfCurrentAppList( | 56 void SetDragAndDropHostOfCurrentAppList( |
| 57 ApplicationDragAndDropHost* drag_and_drop_host); | 57 ApplicationDragAndDropHost* drag_and_drop_host); |
| 58 | 58 |
| 59 ContentsView* contents_view() { return contents_view_; } |
| 60 |
| 59 private: | 61 private: |
| 60 class IconLoader; | 62 class IconLoader; |
| 61 | 63 |
| 62 // Loads icon image for the apps in the selected page of |pagination_model|. | 64 // Loads icon image for the apps in the selected page of |pagination_model|. |
| 63 // |parent| is used to determine the image scale factor to use. | 65 // |parent| is used to determine the image scale factor to use. |
| 64 void PreloadIcons(PaginationModel* pagination_model, | 66 void PreloadIcons(PaginationModel* pagination_model, |
| 65 gfx::NativeView parent); | 67 gfx::NativeView parent); |
| 66 | 68 |
| 67 // Invoked when |icon_loading_wait_timer_| fires. | 69 // Invoked when |icon_loading_wait_timer_| fires. |
| 68 void OnIconLoadingWaitTimer(); | 70 void OnIconLoadingWaitTimer(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ScopedVector<IconLoader> pending_icon_loaders_; | 103 ScopedVector<IconLoader> pending_icon_loaders_; |
| 102 | 104 |
| 103 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 105 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
| 104 | 106 |
| 105 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 107 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace app_list | 110 } // namespace app_list |
| 109 | 111 |
| 110 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 112 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
| OLD | NEW |