| Index: ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
|
| diff --git a/ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h b/ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
|
| similarity index 51%
|
| copy from ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h
|
| copy to ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
|
| index a33130490ff72bc36daab243121420c0ae568802..717928c6b9f51b04b1df290fb2bb94e479317e2b 100644
|
| --- a/ios/chrome/browser/ui/toolbar/keyboard_accessory_view.h
|
| +++ b/ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
|
| @@ -2,35 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_KEYBOARD_ACCESSORY_VIEW_H_
|
| -#define IOS_CHROME_BROWSER_UI_TOOLBAR_KEYBOARD_ACCESSORY_VIEW_H_
|
| +#ifndef IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_
|
| +#define IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_
|
|
|
| #import <UIKit/UIKIt.h>
|
|
|
| -// Delegate protocol for the KeyboardAccessoryView.
|
| -@protocol KeyboardAccessoryViewDelegate
|
| -
|
| -// Notifies the delegate that the Voice Search button was pressed.
|
| -- (void)keyboardAccessoryVoiceSearchTouchDown;
|
| -
|
| -// Notifies the delegate that a touch up occured in the the Voice Search button.
|
| -- (void)keyboardAccessoryVoiceSearchTouchUpInside;
|
| -
|
| -// Notifies the delegate that a key with the title |title| was pressed.
|
| -- (void)keyPressed:(NSString*)title;
|
| -
|
| -@end
|
| -
|
| -typedef NS_ENUM(NSInteger, KeyboardAccessoryViewMode) {
|
| - VOICE_SEARCH = 0,
|
| - KEY_SHORTCUTS
|
| -};
|
| +#import "ios/chrome/browser/ui/toolbar/keyboard_accessory_view_protocol.h"
|
|
|
| // Accessory View above the keyboard.
|
| // Supports two modes: one where a Voice Search button is shown, and one where
|
| // a list of buttons based on |buttonTitles| is shown.
|
| // The default mode is the Voice Search mode.
|
| -@interface KeyboardAccessoryView : UIInputView<UIInputViewAudioFeedback>
|
| +@interface NewKeyboardAccessoryView
|
| + : UIInputView<KeyboardAccessoryViewProtocol, UIInputViewAudioFeedback>
|
|
|
| // Designated initializer. |buttonTitles| lists the titles of the buttons shown
|
| // in the KEY_SHORTCUTS mode. Can be nil or empty. |delegate| receives the
|
| @@ -44,9 +28,6 @@ typedef NS_ENUM(NSInteger, KeyboardAccessoryViewMode) {
|
| - (instancetype)initWithFrame:(CGRect)frame
|
| inputViewStyle:(UIInputViewStyle)inputViewStyle NS_UNAVAILABLE;
|
|
|
| -// The mode in which the KeyboardAccessoryView is in.
|
| -@property(nonatomic) KeyboardAccessoryViewMode mode;
|
| -
|
| @end
|
|
|
| -#endif // IOS_CHROME_BROWSER_UI_TOOLBAR_KEYBOARD_ACCESSORY_VIEW_H_
|
| +#endif // IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_
|
|
|