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

Side by Side Diff: athena/home/app_list_view_delegate.cc

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "athena/home/app_list_view_delegate.h" 5 #include "athena/home/app_list_view_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "athena/home/public/app_model_builder.h" 9 #include "athena/home/public/app_model_builder.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 app_list::SpeechUIModel* AppListViewDelegate::GetSpeechUI() { 71 app_list::SpeechUIModel* AppListViewDelegate::GetSpeechUI() {
72 return speech_ui_.get(); 72 return speech_ui_.get();
73 } 73 }
74 74
75 void AppListViewDelegate::GetShortcutPathForApp( 75 void AppListViewDelegate::GetShortcutPathForApp(
76 const std::string& app_id, 76 const std::string& app_id,
77 const base::Callback<void(const base::FilePath&)>& callback) { 77 const base::Callback<void(const base::FilePath&)>& callback) {
78 // Windows only, nothing is necessary. 78 // Windows only, nothing is necessary.
79 } 79 }
80 80
81 void AppListViewDelegate::FetchRecommendations() {
82 for (size_t i = 0; i < search_providers_.size(); ++i)
83 search_providers_[i]->FetchRecommendations();
84 }
85
81 void AppListViewDelegate::StartSearch() { 86 void AppListViewDelegate::StartSearch() {
82 for (size_t i = 0; i < search_providers_.size(); ++i) 87 for (size_t i = 0; i < search_providers_.size(); ++i)
83 search_providers_[i]->Start(model_->search_box()->text()); 88 search_providers_[i]->Start(model_->search_box()->text());
84 } 89 }
85 90
86 void AppListViewDelegate::StopSearch() { 91 void AppListViewDelegate::StopSearch() {
87 for (size_t i = 0; i < search_providers_.size(); ++i) 92 for (size_t i = 0; i < search_providers_.size(); ++i)
88 search_providers_[i]->Stop(); 93 search_providers_[i]->Stop();
89 } 94 }
90 95
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const app_list::AppListViewDelegate::Users& 172 const app_list::AppListViewDelegate::Users&
168 AppListViewDelegate::GetUsers() const { 173 AppListViewDelegate::GetUsers() const {
169 return users_; 174 return users_;
170 } 175 }
171 176
172 bool AppListViewDelegate::ShouldCenterWindow() const { 177 bool AppListViewDelegate::ShouldCenterWindow() const {
173 return true; 178 return true;
174 } 179 }
175 180
176 } // namespace athena 181 } // namespace athena
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698