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 "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "ui/app_list/apps_grid_view_delegate.h" | 10 #include "ui/app_list/apps_grid_view_delegate.h" |
(...skipping 30 matching lines...) Expand all Loading... | |
41 virtual ~AppListMainView(); | 41 virtual ~AppListMainView(); |
42 | 42 |
43 void ShowAppListWhenReady(); | 43 void ShowAppListWhenReady(); |
44 | 44 |
45 void Close(); | 45 void Close(); |
46 | 46 |
47 void Prerender(); | 47 void Prerender(); |
48 | 48 |
49 SearchBoxView* search_box_view() const { return search_box_view_; } | 49 SearchBoxView* search_box_view() const { return search_box_view_; } |
50 | 50 |
51 void SetModel(AppListModel* model); | |
koz (OOO until 15th September)
2013/08/02 01:51:16
This is no longer needed, right?
calamity
2013/08/02 09:59:54
Done.
| |
52 | |
51 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 53 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
52 // operations outside the application list. | 54 // operations outside the application list. |
53 void SetDragAndDropHostOfCurrentAppList( | 55 void SetDragAndDropHostOfCurrentAppList( |
54 ApplicationDragAndDropHost* drag_and_drop_host); | 56 ApplicationDragAndDropHost* drag_and_drop_host); |
55 | 57 |
56 private: | 58 private: |
57 class IconLoader; | 59 class IconLoader; |
58 | 60 |
59 // Loads icon image for the apps in the selected page of |pagination_model|. | 61 // Loads icon image for the apps in the selected page of |pagination_model|. |
60 // |anchor| is used to determine the image scale factor to use. | 62 // |anchor| is used to determine the image scale factor to use. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; | 96 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; |
95 | 97 |
96 ScopedVector<IconLoader> pending_icon_loaders_; | 98 ScopedVector<IconLoader> pending_icon_loaders_; |
97 | 99 |
98 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 100 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
99 }; | 101 }; |
100 | 102 |
101 } // namespace app_list | 103 } // namespace app_list |
102 | 104 |
103 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 105 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |