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

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 106103006: Added android Template URL support for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed IsVoiceSearchURL Created 7 years 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/search_engines/template_url.h
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 284c48d7541b5c231714e066063b340491af4e42..a2fcadff8eb30e6f94eae3f2c70940f6960a9c86 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -133,6 +133,11 @@ class TemplateURLRef {
// disabled by google.com preferences. See comments on
// SearchTermsData::ForceInstantResultsParam().
bool force_instant_results;
+
+ // If set ReplaceSearchTerms() will automatically append an extra query
+ // parameter indicating that the search originated from voice input. This
+ // causes the search result page to eanble audio playback with answers.
+ bool is_voice_input_source;
};
TemplateURLRef(TemplateURL* owner, Type type);
@@ -261,6 +266,7 @@ class TemplateURLRef {
GOOGLE_IMAGE_THUMBNAIL,
GOOGLE_IMAGE_URL,
GOOGLE_FORCE_INSTANT_RESULTS,
+ GOOGLE_VOICE_INPUT_SOURCE,
GOOGLE_INSTANT_EXTENDED_ENABLED,
GOOGLE_NTP_IS_THEMED,
GOOGLE_OMNIBOX_START_MARGIN,

Powered by Google App Engine
This is Rietveld 408576698