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

Unified Diff: ios/chrome/browser/autofill/form_input_accessory_view.h

Issue 1022463002: [iOS] Upstream files in //ios/chrome/browser/autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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/autofill/form_input_accessory_view.h
diff --git a/ios/chrome/browser/autofill/form_input_accessory_view.h b/ios/chrome/browser/autofill/form_input_accessory_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8992a5169338dcf3039d7a0308070f326823d2b
--- /dev/null
+++ b/ios/chrome/browser/autofill/form_input_accessory_view.h
@@ -0,0 +1,29 @@
+// Copyright 2014 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_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_H_
+#define IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+@protocol FormInputAccessoryViewDelegate;
+
+// Subview of the accessory view for web forms. Shows a custom view with form
+// navigation controls above the keyboard. Subclassed to enable input clicks by
+// way of the playInputClick method.
+@interface FormInputAccessoryView : UIView<UIInputViewAudioFeedback>
+
+// Initializes with |frame| and |delegate| to show |customView|. If the size of
+// |rightFrame| is non-zero, the view will have two parts: the left one has
+// frame |leftFrame| and the right one has frame |rightFrame|. Otherwise the
+// view will be shown in |leftFrame|.
+- (instancetype)initWithFrame:(CGRect)frame
+ delegate:(id<FormInputAccessoryViewDelegate>)delegate
+ customView:(UIView*)customView
+ leftFrame:(CGRect)leftFrame
+ rightFrame:(CGRect)rightFrame;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_AUTOFILL_FORM_INPUT_ACCESSORY_VIEW_H_
« no previous file with comments | « ios/chrome/browser/autofill/autofill_agent_utils.mm ('k') | ios/chrome/browser/autofill/form_input_accessory_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698