| OLD | NEW |
| (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_ |
| OLD | NEW |