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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
diff --git a/ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h b/ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..136bda00131a0016919ca513e465acccb0ff7ffc
--- /dev/null
+++ b/ios/chrome/browser/ui/toolbar/new_keyboard_accessory_view.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// 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_NEW_KEYBOARD_ACCESSORY_VIEW_H_
+#define IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_
+
+#import <UIKit/UIKIt.h>
+
+#import "ios/chrome/browser/ui/toolbar/keyboard_accessory_view_protocol.h"
+
+// Accessory View above the keyboard.
+// Shows keys that are shortcuts to commonly used characters or strings,
+// and buttons to start Voice Search or a Camera Search.
+@interface NewKeyboardAccessoryView
+ : UIInputView<KeyboardAccessoryViewProtocol, UIInputViewAudioFeedback>
+
+// Designated initializer. |buttonTitles| lists the titles of the shortcut
+// buttons. |delegate| receives the various events triggered in the view. Not
+// retained, and can be nil.
+- (instancetype)initWithButtons:(NSArray<NSString*>*)buttonTitles
+ delegate:(id<KeyboardAccessoryViewDelegate>)delegate
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+
+- (instancetype)initWithFrame:(CGRect)frame
+ inputViewStyle:(UIInputViewStyle)inputViewStyle NS_UNAVAILABLE;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_TOOLBAR_NEW_KEYBOARD_ACCESSORY_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698