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

Unified Diff: ios/public/provider/chrome/browser/voice/voice_search_provider.h

Issue 2457093002: [ios] Adds VoiceSearchProvider::IsVoiceSearchEnabled(). (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | ios/public/provider/chrome/browser/voice/voice_search_provider.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/voice/voice_search_provider.h
diff --git a/ios/public/provider/chrome/browser/voice/voice_search_provider.h b/ios/public/provider/chrome/browser/voice/voice_search_provider.h
index 3391e10350882aee9c0e83a8cc3c1b1983baaee2..2c774cb7e8cbb260725ba3ede7a8be396009ec88 100644
--- a/ios/public/provider/chrome/browser/voice/voice_search_provider.h
+++ b/ios/public/provider/chrome/browser/voice/voice_search_provider.h
@@ -26,6 +26,10 @@ class VoiceSearchProvider {
VoiceSearchProvider() = default;
virtual ~VoiceSearchProvider() = default;
+ // Returns true if voice search is enabled. The other methods in this
+ // provider must not be called if this method returns false.
+ virtual bool IsVoiceSearchEnabled() const;
+
// Returns the list of available voice search languages.
virtual NSArray* GetAvailableLanguages() const;
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/voice/voice_search_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698