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

Unified Diff: chrome/browser/ui/search/instant_controller.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: Move listener to SearchTabHelper. 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
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index d01af5d992390385c60bd3bfa0da63f82dd122ff..54e8fa8079a56de8eab920bcb7945eee6231137f 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1419,6 +1419,13 @@ void InstantController::SetSuggestions(
ShowOverlay(100, INSTANT_SIZE_PERCENT);
}
+void InstantController::SetVoiceSearchSupported(
+ const content::WebContents* contents, bool supported) {
+ if (!extended_enabled())
+ return;
+ // TODO(pkasting): Implement this function.
+}
+
void InstantController::ShowInstantOverlay(const content::WebContents* contents,
int height,
InstantSizeUnits units) {

Powered by Google App Engine
This is Rietveld 408576698