Index: chrome/browser/ui/app_list/app_list_view_delegate.cc |
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
index e02d1c8fa23a27e5dba36dd98ce43f15c72e71e1..86533761c0913af745e16a1b16af61bcee769b53 100644 |
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc |
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc |
@@ -271,6 +271,13 @@ void AppListViewDelegate::OpenFeedback() { |
chrome::kAppLauncherCategoryTag); |
} |
+void AppListViewDelegate::ToggleSpeechRecognition() { |
+ app_list::StartPageService* service = |
+ app_list::StartPageService::Get(profile_); |
+ if (service) |
+ service->ToggleSpeechRecognition(); |
+} |
+ |
void AppListViewDelegate::ShowForProfileByPath( |
const base::FilePath& profile_path) { |
controller_->ShowForProfileByPath(profile_path); |
@@ -280,6 +287,10 @@ void AppListViewDelegate::OnSearch(const base::string16& query) { |
model_->search_box()->SetText(query); |
} |
+void AppListViewDelegate::OnSpeechRecognitionStateChanged(bool recognizing) { |
+ model_->search_box()->SetSpeechRecognitionButtonState(recognizing); |
+} |
+ |
void AppListViewDelegate::Observe( |
int type, |
const content::NotificationSource& source, |