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

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

Issue 1428423002: Remove setVoiceSearchSupported part of EmbeddedSearch SearchBox API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index 5ff90824b7f1d4cafc606f35151b53875dd2a401..ce8561b05c5d3b6eb9f50895f59ab904be1e6d67 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -515,10 +515,6 @@ class SearchBoxExtensionWrapper : public v8::Extension {
// Pastes provided value or clipboard's content into the omnibox.
static void Paste(const v8::FunctionCallbackInfo<v8::Value>& args);
- // Indicates whether the page supports voice search.
- static void SetVoiceSearchSupported(
- const v8::FunctionCallbackInfo<v8::Value>& args);
-
// Start capturing user key strokes.
static void StartCapturingKeyStrokes(
const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -692,8 +688,6 @@ SearchBoxExtensionWrapper::GetNativeFunctionTemplate(
return v8::FunctionTemplate::New(isolate, NavigateContentWindow);
if (name->Equals(v8::String::NewFromUtf8(isolate, "Paste")))
return v8::FunctionTemplate::New(isolate, Paste);
- if (name->Equals(v8::String::NewFromUtf8(isolate, "SetVoiceSearchSupported")))
- return v8::FunctionTemplate::New(isolate, SetVoiceSearchSupported);
if (name->Equals(
v8::String::NewFromUtf8(isolate, "StartCapturingKeyStrokes")))
return v8::FunctionTemplate::New(isolate, StartCapturingKeyStrokes);
@@ -1260,22 +1254,6 @@ void SearchBoxExtensionWrapper::StopCapturingKeyStrokes(
}
// static
-void SearchBoxExtensionWrapper::SetVoiceSearchSupported(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- content::RenderView* render_view = GetRenderView();
- if (!render_view) {
- return;
- }
- if (!args.Length()) {
- ThrowInvalidParameters(args);
- return;
- }
-
- DVLOG(1) << render_view << " SetVoiceSearchSupported";
- SearchBox::Get(render_view)->SetVoiceSearchSupported(args[0]->BooleanValue());
-}
-
-// static
void SearchBoxExtensionWrapper::UndoAllMostVisitedDeletions(
const v8::FunctionCallbackInfo<v8::Value>& args) {
content::RenderView* render_view = GetRenderView();
« chrome/renderer/searchbox/searchbox.h ('K') | « chrome/renderer/searchbox/searchbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698