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

Unified Diff: chrome/renderer/resources/extensions/searchbox_api.js

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/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/searchbox_api.js
diff --git a/chrome/renderer/resources/extensions/searchbox_api.js b/chrome/renderer/resources/extensions/searchbox_api.js
index 8a21d03203c9ac63829d20aad4507a5a1bfa1e2d..c4083c6bb481a1fd392a6fa54f17bbf646ec8e61 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -55,6 +55,7 @@ if (!chrome.embeddedSearch) {
native function SetSuggestion();
native function SetSuggestionFromAutocompleteResult();
native function SetSuggestions();
+ native function SetVoiceSearchSupported();
native function ShowOverlay();
native function FocusOmnibox();
native function StartCapturingKeyStrokes();
@@ -181,6 +182,9 @@ if (!chrome.embeddedSearch) {
this.setSuggestions = function(text) {
SetSuggestions(text);
};
+ this.setVoiceSearchSupported = function(supported) {
+ SetVoiceSearchSupported(supported);
+ };
this.setAutocompleteText = function(text, behavior) {
SetSuggestion(text, behavior);
};
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698