| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDITOR_FIELD_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDITOR_FIELD_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDITOR_FIELD_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDITOR_FIELD_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h" | 10 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 @property(nonatomic, assign) EditorFieldType fieldType; | 27 @property(nonatomic, assign) EditorFieldType fieldType; |
| 28 // Label for the field. | 28 // Label for the field. |
| 29 @property(nonatomic, copy) NSString* label; | 29 @property(nonatomic, copy) NSString* label; |
| 30 // Value of the field. May be nil. | 30 // Value of the field. May be nil. |
| 31 @property(nonatomic, copy) NSString* value; | 31 @property(nonatomic, copy) NSString* value; |
| 32 // Optional display value. Used in selector editor fields where |value| is not | 32 // Optional display value. Used in selector editor fields where |value| is not |
| 33 // meant for display purposes. | 33 // meant for display purposes. |
| 34 @property(nonatomic, copy) NSString* displayValue; | 34 @property(nonatomic, copy) NSString* displayValue; |
| 35 // Whether the field is required. | 35 // Whether the field is required. |
| 36 @property(nonatomic, getter=isRequired) BOOL required; | 36 @property(nonatomic, getter=isRequired) BOOL required; |
| 37 // Whether the field is enabled. |
| 38 @property(nonatomic, getter=isEnabled) BOOL enabled; |
| 37 // The associated CollectionViewItem instance. May be nil. | 39 // The associated CollectionViewItem instance. May be nil. |
| 38 @property(nonatomic, strong) CollectionViewItem* item; | 40 @property(nonatomic, strong) CollectionViewItem* item; |
| 39 // The section identifier for the associated AutofillEditItem. | 41 // The section identifier for the associated AutofillEditItem. |
| 40 @property(nonatomic, assign) NSInteger sectionIdentifier; | 42 @property(nonatomic, assign) NSInteger sectionIdentifier; |
| 41 | 43 |
| 42 - (instancetype)initWithAutofillUIType:(AutofillUIType)autofillUIType | 44 - (instancetype)initWithAutofillUIType:(AutofillUIType)autofillUIType |
| 43 fieldType:(EditorFieldType)fieldType | 45 fieldType:(EditorFieldType)fieldType |
| 44 label:(NSString*)label | 46 label:(NSString*)label |
| 45 value:(NSString*)value | 47 value:(NSString*)value |
| 46 required:(BOOL)required; | 48 required:(BOOL)required; |
| 47 | 49 |
| 48 @end | 50 @end |
| 49 | 51 |
| 50 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDITOR_FIELD_H_ | 52 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_EDITOR_FIELD_H_ |
| OLD | NEW |