OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Gets the SpeechUIModel for the app list. Owned by the AppListViewDelegate. | 75 // Gets the SpeechUIModel for the app list. Owned by the AppListViewDelegate. |
76 virtual SpeechUIModel* GetSpeechUI() = 0; | 76 virtual SpeechUIModel* GetSpeechUI() = 0; |
77 | 77 |
78 // Gets a path to a shortcut for the given app. Returns asynchronously as the | 78 // Gets a path to a shortcut for the given app. Returns asynchronously as the |
79 // shortcut may not exist yet. | 79 // shortcut may not exist yet. |
80 virtual void GetShortcutPathForApp( | 80 virtual void GetShortcutPathForApp( |
81 const std::string& app_id, | 81 const std::string& app_id, |
82 const base::Callback<void(const base::FilePath&)>& callback) = 0; | 82 const base::Callback<void(const base::FilePath&)>& callback) = 0; |
83 | 83 |
| 84 // Invoked to start a search query for recommendations. This populates |
| 85 // AppListModel::SearchResults with the retrieved recommendations. |
| 86 virtual void FetchRecommendations() = 0; |
| 87 |
84 // Invoked to start a new search. Delegate collects query input from | 88 // Invoked to start a new search. Delegate collects query input from |
85 // SearchBoxModel and populates SearchResults. Both models are sub models | 89 // SearchBoxModel and populates SearchResults. Both models are sub models |
86 // of AppListModel. | 90 // of AppListModel. |
87 virtual void StartSearch() = 0; | 91 virtual void StartSearch() = 0; |
88 | 92 |
89 // Invoked to stop the current search. | 93 // Invoked to stop the current search. |
90 virtual void StopSearch() = 0; | 94 virtual void StopSearch() = 0; |
91 | 95 |
92 // Invoked to open the search result. | 96 // Invoked to open the search result. |
93 virtual void OpenSearchResult(SearchResult* result, | 97 virtual void OpenSearchResult(SearchResult* result, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 virtual bool ShouldCenterWindow() const = 0; | 159 virtual bool ShouldCenterWindow() const = 0; |
156 | 160 |
157 // Adds/removes an observer for profile changes. | 161 // Adds/removes an observer for profile changes. |
158 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | 162 virtual void AddObserver(AppListViewDelegateObserver* observer) {} |
159 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | 163 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} |
160 }; | 164 }; |
161 | 165 |
162 } // namespace app_list | 166 } // namespace app_list |
163 | 167 |
164 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 168 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |