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

Unified Diff: chrome/renderer/searchbox/searchbox.cc

Issue 17132011: Add setVoiceSearchSupported to the searchbox API. This will be used to determine whether to show a … (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebase past 16035020, add test. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 1d873975e601c4e1e8fe4a90e35ef3ee56358c63..9450a1e89f3f2e562a6144bf0f71ec74ae3159fd 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -92,6 +92,11 @@ void SearchBox::SetSuggestions(
render_view()->GetRoutingID(), render_view()->GetPageId(), suggestions));
}
+void SearchBox::SetVoiceSearchSupported(bool supported) {
+ render_view()->Send(new ChromeViewHostMsg_SetVoiceSearchSupported(
+ render_view()->GetRoutingID(), render_view()->GetPageId(), supported));
+}
+
void SearchBox::MarkQueryAsRestricted() {
query_is_restricted_ = true;
query_.clear();
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698