OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |