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

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

Issue 2459533002: [ios] Adds protocols for voice search. (Closed)
Patch Set: Typo. 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
Index: ios/public/provider/chrome/browser/voice/voice_search_bar.h
diff --git a/ios/public/provider/chrome/browser/voice/voice_search_bar.h b/ios/public/provider/chrome/browser/voice/voice_search_bar.h
new file mode 100644
index 0000000000000000000000000000000000000000..3807f29e62efa09221013cac324a7666c2e7df56
--- /dev/null
+++ b/ios/public/provider/chrome/browser/voice/voice_search_bar.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_BAR_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_BAR_H_
+
+#import <Foundation/Foundation.h>
+
+@protocol VoiceSearchBarDelegate;
+
+// Protocol used by bottom toolbars containing a button to launch VoiceSearch.
+@protocol VoiceSearchBar<NSObject>
+
+// The VoiceSearchBar's delegate.
+@property(nonatomic, assign) id<VoiceSearchBarDelegate> voiceSearchBarDelegate;
+
+// Animates the view up from the bottom of the its superview so that it's
+// visible or down so that it's no longer visible.
+- (void)animateToBecomeVisible:(BOOL)visible;
+
+// Sets necessary state to prepare for presenting voice search.
+- (void)prepareToPresentVoiceSearch;
+
+@end
+
+// The delegate protocol for VoiceSearchBar.
+@protocol VoiceSearchBarDelegate
+
+// Returns whether Text To Speech is enabled for |voiceSearchBar|.
+- (BOOL)isTTSEnabledForVoiceSearchBar:(id<VoiceSearchBar>)voiceSearchBar;
+
+// Called to notify the delegate that the state of |voiceSearchBar|'s
+// VoiceSearch button appearance has been updated.
+- (void)voiceSearchBarDidUpdateButtonState:(id<VoiceSearchBar>)voiceSearchBar;
+
+@end
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_BAR_H_
« no previous file with comments | « ios/public/provider/chrome/browser/BUILD.gn ('k') | ios/public/provider/chrome/browser/voice/voice_search_bar_owner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698