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

Side by Side 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, 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_BAR_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_BAR_H_
7
8 #import <Foundation/Foundation.h>
9
10 @protocol VoiceSearchBarDelegate;
11
12 // Protocol used by bottom toolbars containing a button to launch VoiceSearch.
13 @protocol VoiceSearchBar<NSObject>
14
15 // The VoiceSearchBar's delegate.
16 @property(nonatomic, assign) id<VoiceSearchBarDelegate> voiceSearchBarDelegate;
17
18 // Animates the view up from the bottom of the its superview so that it's
19 // visible or down so that it's no longer visible.
20 - (void)animateToBecomeVisible:(BOOL)visible;
21
22 // Sets necessary state to prepare for presenting voice search.
23 - (void)prepareToPresentVoiceSearch;
24
25 @end
26
27 // The delegate protocol for VoiceSearchBar.
28 @protocol VoiceSearchBarDelegate
29
30 // Returns whether Text To Speech is enabled for |voiceSearchBar|.
31 - (BOOL)isTTSEnabledForVoiceSearchBar:(id<VoiceSearchBar>)voiceSearchBar;
32
33 // Called to notify the delegate that the state of |voiceSearchBar|'s
34 // VoiceSearch button appearance has been updated.
35 - (void)voiceSearchBarDidUpdateButtonState:(id<VoiceSearchBar>)voiceSearchBar;
36
37 @end
38
39 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_VOICE_VOICE_SEARCH_BAR_H_
OLDNEW
« 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