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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void Init(gfx::NativeView parent, | 46 void Init(gfx::NativeView parent, |
47 int initial_apps_page, | 47 int initial_apps_page, |
48 SearchBoxView* search_box_view); | 48 SearchBoxView* search_box_view); |
49 | 49 |
50 void ShowAppListWhenReady(); | 50 void ShowAppListWhenReady(); |
51 | 51 |
52 void ResetForShow(); | 52 void ResetForShow(); |
53 | 53 |
54 void Close(); | 54 void Close(); |
55 | 55 |
56 void Prerender(); | |
57 | |
58 void ModelChanged(); | 56 void ModelChanged(); |
59 | 57 |
60 SearchBoxView* search_box_view() const { return search_box_view_; } | 58 SearchBoxView* search_box_view() const { return search_box_view_; } |
61 | 59 |
62 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop | 60 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop |
63 // operations outside the application list. | 61 // operations outside the application list. |
64 void SetDragAndDropHostOfCurrentAppList( | 62 void SetDragAndDropHostOfCurrentAppList( |
65 ApplicationDragAndDropHost* drag_and_drop_host); | 63 ApplicationDragAndDropHost* drag_and_drop_host); |
66 | 64 |
67 ContentsView* contents_view() const { return contents_view_; } | 65 ContentsView* contents_view() const { return contents_view_; } |
(...skipping 27 matching lines...) Expand all Loading... |
95 void PreloadIcons(gfx::NativeView parent); | 93 void PreloadIcons(gfx::NativeView parent); |
96 | 94 |
97 // Invoked when |icon_loading_wait_timer_| fires. | 95 // Invoked when |icon_loading_wait_timer_| fires. |
98 void OnIconLoadingWaitTimer(); | 96 void OnIconLoadingWaitTimer(); |
99 | 97 |
100 // Invoked from an IconLoader when icon loading is finished. | 98 // Invoked from an IconLoader when icon loading is finished. |
101 void OnItemIconLoaded(IconLoader* loader); | 99 void OnItemIconLoaded(IconLoader* loader); |
102 | 100 |
103 // Overridden from AppsGridViewDelegate: | 101 // Overridden from AppsGridViewDelegate: |
104 void ActivateApp(AppListItem* item, int event_flags) override; | 102 void ActivateApp(AppListItem* item, int event_flags) override; |
105 void GetShortcutPathForApp( | |
106 const std::string& app_id, | |
107 const base::Callback<void(const base::FilePath&)>& callback) override; | |
108 void CancelDragInActiveFolder() override; | 103 void CancelDragInActiveFolder() override; |
109 | 104 |
110 // Overridden from SearchBoxViewDelegate: | 105 // Overridden from SearchBoxViewDelegate: |
111 void QueryChanged(SearchBoxView* sender) override; | 106 void QueryChanged(SearchBoxView* sender) override; |
112 void BackButtonPressed() override; | 107 void BackButtonPressed() override; |
113 void SetSearchResultSelection(bool select) override; | 108 void SetSearchResultSelection(bool select) override; |
114 | 109 |
115 // Overridden from SearchResultListViewDelegate: | 110 // Overridden from SearchResultListViewDelegate: |
116 void OnResultInstalled(SearchResult* result) override; | 111 void OnResultInstalled(SearchResult* result) override; |
117 | 112 |
(...skipping 11 matching lines...) Expand all Loading... |
129 ScopedVector<IconLoader> pending_icon_loaders_; | 124 ScopedVector<IconLoader> pending_icon_loaders_; |
130 | 125 |
131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
132 | 127 |
133 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 128 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
134 }; | 129 }; |
135 | 130 |
136 } // namespace app_list | 131 } // namespace app_list |
137 | 132 |
138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |