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

Side by Side Diff: ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h

Issue 2934463002: [iOS] Add experimental new keyboard accessory view. (Closed)
Patch Set: Rebased. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698