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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // only used by non-Ash Windows. | 68 // only used by non-Ash Windows. |
69 virtual void SetProfileByPath(const base::FilePath& profile_path) = 0; | 69 virtual void SetProfileByPath(const base::FilePath& profile_path) = 0; |
70 | 70 |
71 // Gets the model associated with the view delegate. The model may be owned | 71 // Gets the model associated with the view delegate. The model may be owned |
72 // by the delegate, or owned elsewhere (e.g. a profile keyed service). | 72 // by the delegate, or owned elsewhere (e.g. a profile keyed service). |
73 virtual AppListModel* GetModel() = 0; | 73 virtual AppListModel* GetModel() = 0; |
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 | |
79 // shortcut may not exist yet. | |
80 virtual void GetShortcutPathForApp( | |
81 const std::string& app_id, | |
82 const base::Callback<void(const base::FilePath&)>& callback) = 0; | |
83 | |
84 // Invoked to start a new search. Delegate collects query input from | 78 // Invoked to start a new search. Delegate collects query input from |
85 // SearchBoxModel and populates SearchResults. Both models are sub models | 79 // SearchBoxModel and populates SearchResults. Both models are sub models |
86 // of AppListModel. | 80 // of AppListModel. |
87 virtual void StartSearch() = 0; | 81 virtual void StartSearch() = 0; |
88 | 82 |
89 // Invoked to stop the current search. | 83 // Invoked to stop the current search. |
90 virtual void StopSearch() = 0; | 84 virtual void StopSearch() = 0; |
91 | 85 |
92 // Invoked to open the search result. | 86 // Invoked to open the search result. |
93 virtual void OpenSearchResult(SearchResult* result, | 87 virtual void OpenSearchResult(SearchResult* result, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 virtual base::string16 GetLearnMoreText() const; | 166 virtual base::string16 GetLearnMoreText() const; |
173 virtual base::string16 GetLearnMoreLink() const; | 167 virtual base::string16 GetLearnMoreLink() const; |
174 virtual gfx::ImageSkia* GetAppsIcon() const; | 168 virtual gfx::ImageSkia* GetAppsIcon() const; |
175 virtual void OpenLearnMoreLink(); | 169 virtual void OpenLearnMoreLink(); |
176 #endif | 170 #endif |
177 }; | 171 }; |
178 | 172 |
179 } // namespace app_list | 173 } // namespace app_list |
180 | 174 |
181 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 175 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |