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

Unified Diff: ios/chrome/browser/payments/payment_request_editor_field.mm

Issue 2744823003: [Payment Request] Generic edit form (Closed)
Patch Set: rebase Created 3 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/payments/payment_request_editor_field.mm
diff --git a/ios/chrome/browser/payments/payment_request_editor_field.mm b/ios/chrome/browser/payments/payment_request_editor_field.mm
new file mode 100644
index 0000000000000000000000000000000000000000..9f6b220cb2c38f1ff30ae83fe9e0aae0caa366b6
--- /dev/null
+++ b/ios/chrome/browser/payments/payment_request_editor_field.mm
@@ -0,0 +1,34 @@
+// 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.
+
+#import "ios/chrome/browser/payments/payment_request_editor_field.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation EditorField
+
+@synthesize autofillType = _autofillType;
+@synthesize label = _label;
+@synthesize value = _value;
+@synthesize required = _required;
+@synthesize item = _item;
+@synthesize sectionIdentifier = _sectionIdentifier;
+
+- (instancetype)initWithAutofillType:(NSInteger)autofillType
+ label:(NSString*)label
+ value:(NSString*)value
+ required:(BOOL)required {
+ self = [super init];
+ if (self) {
+ _autofillType = autofillType;
+ _label = label;
+ _value = value;
+ _required = required;
+ }
+ return self;
+}
+
+@end
« no previous file with comments | « ios/chrome/browser/payments/payment_request_editor_field.h ('k') | ios/chrome/browser/ui/settings/cells/autofill_edit_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698