| 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
|
|
|