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

Side by Side Diff: chrome/renderer/searchbox/searchbox.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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/searchbox/searchbox.h" 5 #include "chrome/renderer/searchbox/searchbox.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 render_view()->Send(new ChromeViewHostMsg_SearchBoxNavigate( 331 render_view()->Send(new ChromeViewHostMsg_SearchBoxNavigate(
332 render_view()->GetRoutingID(), page_seq_no_, url, 332 render_view()->GetRoutingID(), page_seq_no_, url,
333 disposition, is_most_visited_item_url)); 333 disposition, is_most_visited_item_url));
334 } 334 }
335 335
336 void SearchBox::Paste(const base::string16& text) { 336 void SearchBox::Paste(const base::string16& text) {
337 render_view()->Send(new ChromeViewHostMsg_PasteAndOpenDropdown( 337 render_view()->Send(new ChromeViewHostMsg_PasteAndOpenDropdown(
338 render_view()->GetRoutingID(), page_seq_no_, text)); 338 render_view()->GetRoutingID(), page_seq_no_, text));
339 } 339 }
340 340
341 void SearchBox::SetVoiceSearchSupported(bool supported) {
342 render_view()->Send(new ChromeViewHostMsg_SetVoiceSearchSupported(
343 render_view()->GetRoutingID(), page_seq_no_, supported));
344 }
345
346 void SearchBox::StartCapturingKeyStrokes() { 341 void SearchBox::StartCapturingKeyStrokes() {
347 render_view()->Send(new ChromeViewHostMsg_FocusOmnibox( 342 render_view()->Send(new ChromeViewHostMsg_FocusOmnibox(
348 render_view()->GetRoutingID(), page_seq_no_, OMNIBOX_FOCUS_INVISIBLE)); 343 render_view()->GetRoutingID(), page_seq_no_, OMNIBOX_FOCUS_INVISIBLE));
349 } 344 }
350 345
351 void SearchBox::StopCapturingKeyStrokes() { 346 void SearchBox::StopCapturingKeyStrokes() {
352 render_view()->Send(new ChromeViewHostMsg_FocusOmnibox( 347 render_view()->Send(new ChromeViewHostMsg_FocusOmnibox(
353 render_view()->GetRoutingID(), page_seq_no_, OMNIBOX_FOCUS_NONE)); 348 render_view()->GetRoutingID(), page_seq_no_, OMNIBOX_FOCUS_NONE));
354 } 349 }
355 350
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 552
558 void SearchBox::Reset() { 553 void SearchBox::Reset() {
559 query_.clear(); 554 query_.clear();
560 embedded_search_request_params_ = EmbeddedSearchRequestParams(); 555 embedded_search_request_params_ = EmbeddedSearchRequestParams();
561 suggestion_ = InstantSuggestion(); 556 suggestion_ = InstantSuggestion();
562 start_margin_ = 0; 557 start_margin_ = 0;
563 is_focused_ = false; 558 is_focused_ = false;
564 is_key_capture_enabled_ = false; 559 is_key_capture_enabled_ = false;
565 theme_info_ = ThemeBackgroundInfo(); 560 theme_info_ = ThemeBackgroundInfo();
566 } 561 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698