| OLD | NEW |
| (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 #import "ios/chrome/browser/payments/payment_request_editor_field.h" |
| 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
| 11 @implementation EditorField |
| 12 |
| 13 @synthesize autofillType = _autofillType; |
| 14 @synthesize label = _label; |
| 15 @synthesize value = _value; |
| 16 @synthesize required = _required; |
| 17 @synthesize item = _item; |
| 18 @synthesize sectionIdentifier = _sectionIdentifier; |
| 19 |
| 20 - (instancetype)initWithAutofillType:(NSInteger)autofillType |
| 21 label:(NSString*)label |
| 22 value:(NSString*)value |
| 23 required:(BOOL)required { |
| 24 self = [super init]; |
| 25 if (self) { |
| 26 _autofillType = autofillType; |
| 27 _label = label; |
| 28 _value = value; |
| 29 _required = required; |
| 30 } |
| 31 return self; |
| 32 } |
| 33 |
| 34 @end |
| OLD | NEW |