OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_ |
| 7 |
| 8 #import <UIKit/UIKIt.h> |
| 9 |
| 10 #import "ios/chrome/browser/ui/toolbar/keyboard_accessory_view_protocol.h" |
| 11 |
| 12 // Accessory View above the keyboard. |
| 13 // Shows keys that are shortcuts to commonly used characters or strings, |
| 14 // and buttons to start Voice Search or a Camera Search. |
| 15 @interface NewKeyboardAccessoryView |
| 16 : UIInputView<KeyboardAccessoryViewProtocol, UIInputViewAudioFeedback> |
| 17 |
| 18 // Designated initializer. |buttonTitles| lists the titles of the shortcut |
| 19 // buttons. |delegate| receives the various events triggered in the view. Not |
| 20 // retained, and can be nil. |
| 21 - (instancetype)initWithButtons:(NSArray<NSString*>*)buttonTitles |
| 22 delegate:(id<KeyboardAccessoryViewDelegate>)delegate |
| 23 NS_DESIGNATED_INITIALIZER; |
| 24 |
| 25 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| 26 |
| 27 - (instancetype)initWithFrame:(CGRect)frame |
| 28 inputViewStyle:(UIInputViewStyle)inputViewStyle NS_UNAVAILABLE; |
| 29 |
| 30 @end |
| 31 |
| 32 #endif // IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_ |
OLD | NEW |