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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void OnIconLoadingWaitTimer(); | 94 void OnIconLoadingWaitTimer(); |
95 | 95 |
96 // Invoked from an IconLoader when icon loading is finished. | 96 // Invoked from an IconLoader when icon loading is finished. |
97 void OnItemIconLoaded(IconLoader* loader); | 97 void OnItemIconLoaded(IconLoader* loader); |
98 | 98 |
99 // Overridden from AppsGridViewDelegate: | 99 // Overridden from AppsGridViewDelegate: |
100 virtual void ActivateApp(AppListItem* item, int event_flags) OVERRIDE; | 100 virtual void ActivateApp(AppListItem* item, int event_flags) OVERRIDE; |
101 virtual void GetShortcutPathForApp( | 101 virtual void GetShortcutPathForApp( |
102 const std::string& app_id, | 102 const std::string& app_id, |
103 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; | 103 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; |
| 104 virtual void CancelDragInActiveFolder() OVERRIDE; |
104 | 105 |
105 // Overridden from SearchBoxViewDelegate: | 106 // Overridden from SearchBoxViewDelegate: |
106 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; | 107 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; |
107 | 108 |
108 // Overridden from SearchResultListViewDelegate: | 109 // Overridden from SearchResultListViewDelegate: |
109 virtual void OnResultInstalled(SearchResult* result) OVERRIDE; | 110 virtual void OnResultInstalled(SearchResult* result) OVERRIDE; |
110 virtual void OnResultUninstalled(SearchResult* result) OVERRIDE; | 111 virtual void OnResultUninstalled(SearchResult* result) OVERRIDE; |
111 | 112 |
112 AppListViewDelegate* delegate_; // Owned by parent view (AppListView). | 113 AppListViewDelegate* delegate_; // Owned by parent view (AppListView). |
113 AppListModel* model_; // Unowned; ownership is handled by |delegate_|. | 114 AppListModel* model_; // Unowned; ownership is handled by |delegate_|. |
(...skipping 11 matching lines...) Expand all Loading... |
125 ScopedVector<IconLoader> pending_icon_loaders_; | 126 ScopedVector<IconLoader> pending_icon_loaders_; |
126 | 127 |
127 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 128 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
128 | 129 |
129 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 130 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
130 }; | 131 }; |
131 | 132 |
132 } // namespace app_list | 133 } // namespace app_list |
133 | 134 |
134 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 135 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |