Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ui/app_list/app_list_view_delegate.h

Issue 379333005: Allow AppSearchProvider to provide recommendations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698