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

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

Issue 2876603005: [Payment Request] Refactors the edit view controller (Closed)
Patch Set: Addressed comments Created 3 years, 7 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/ui/payments/payment_request_editor_field.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_editor_field.mm b/ios/chrome/browser/ui/payments/payment_request_editor_field.mm
index 27ee53e133a7c8f563884e05a0faa382abfb83c8..68740c4aefd241749ad3c87dbec7137683417c05 100644
--- a/ios/chrome/browser/ui/payments/payment_request_editor_field.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_editor_field.mm
@@ -11,19 +11,23 @@
@implementation EditorField
@synthesize autofillUIType = _autofillUIType;
+@synthesize fieldType = _fieldType;
@synthesize label = _label;
@synthesize value = _value;
+@synthesize displayValue = _displayValue;
@synthesize required = _required;
@synthesize item = _item;
@synthesize sectionIdentifier = _sectionIdentifier;
- (instancetype)initWithAutofillUIType:(AutofillUIType)autofillUIType
+ fieldType:(EditorFieldType)fieldType
label:(NSString*)label
value:(NSString*)value
required:(BOOL)required {
self = [super init];
if (self) {
_autofillUIType = autofillUIType;
+ _fieldType = fieldType;
_label = label;
_value = value;
_required = required;
@@ -31,4 +35,8 @@
return self;
}
+- (NSString*)description {
+ return [NSString stringWithFormat:@"Label: %@, Value: %@", _label, _value];
+}
+
@end
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_editor_field.h ('k') | ios/showcase/payments/sc_payments_editor_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698