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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 69813002: Adds the speech recognition button to the app-list searchbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/app_list/search/search_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698