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

Unified Diff: chrome/browser/ui/search/search_ipc_router.h

Issue 1436583002: Revert of 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/browser/ui/search/search_ipc_router.h
diff --git a/chrome/browser/ui/search/search_ipc_router.h b/chrome/browser/ui/search/search_ipc_router.h
index e0f3749e6063a3da6b5866b02f7215d7225d48c4..0f62aba48b36dfc746632aba778f3c11c21afec9 100644
--- a/chrome/browser/ui/search/search_ipc_router.h
+++ b/chrome/browser/ui/search/search_ipc_router.h
@@ -36,6 +36,9 @@
// load event.
virtual void OnInstantSupportDetermined(bool supports_instant) = 0;
+ // Called upon determination of voice search API support.
+ virtual void OnSetVoiceSearchSupport(bool supports_voice_search) = 0;
+
// Called when the page wants the omnibox to be focused. |state| specifies
// the omnibox focus state.
virtual void FocusOmnibox(OmniboxFocusState state) = 0;
@@ -97,6 +100,7 @@
// SearchIPCRouter calls these functions before sending/receiving messages
// to/from the page.
+ virtual bool ShouldProcessSetVoiceSearchSupport() = 0;
virtual bool ShouldProcessFocusOmnibox(bool is_active_tab) = 0;
virtual bool ShouldProcessNavigateToURL(bool is_active_tab) = 0;
virtual bool ShouldProcessDeleteMostVisitedItem() = 0;
@@ -114,6 +118,7 @@
virtual bool ShouldSendOmniboxFocusChanged() = 0;
virtual bool ShouldSendMostVisitedItems() = 0;
virtual bool ShouldSendThemeBackgroundInfo() = 0;
+ virtual bool ShouldSendToggleVoiceSearch() = 0;
virtual bool ShouldSubmitQuery() = 0;
};
@@ -161,6 +166,9 @@
// Tells the renderer about the current theme background.
void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
+
+ // Tells the page to toggle voice search.
+ void ToggleVoiceSearch();
// Tells the page that the user pressed Enter in the omnibox.
void Submit(const base::string16& text,
@@ -191,6 +199,8 @@
bool OnMessageReceived(const IPC::Message& message) override;
void OnInstantSupportDetermined(int page_seq_no, bool supports_instant) const;
+ void OnVoiceSearchSupportDetermined(int page_id,
+ bool supports_voice_search) const;
void OnFocusOmnibox(int page_id, OmniboxFocusState state) const;
void OnSearchBoxNavigate(int page_id,
const GURL& url,
« no previous file with comments | « chrome/browser/ui/search/instant_extended_interactive_uitest.cc ('k') | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698