| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "ios/chrome/browser/ui/settings/cells/autofill_edit_item.h" | 5 #import "ios/chrome/browser/ui/settings/cells/autofill_edit_item.h" |
| 6 | 6 |
| 7 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" | 7 #import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h" |
| 8 #import "ios/chrome/browser/ui/rtl_geometry.h" | 8 #import "ios/chrome/browser/ui/rtl_geometry.h" |
| 9 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat
erialPalettes.h" | 9 #import "ios/third_party/material_components_ios/src/components/Palettes/src/Mat
erialPalettes.h" |
| 10 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF
ontLoader.h" | 10 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF
ontLoader.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 const CGFloat kLabelAndFieldGap = 5; | 24 const CGFloat kLabelAndFieldGap = 5; |
| 25 } // namespace | 25 } // namespace |
| 26 | 26 |
| 27 @implementation AutofillEditItem | 27 @implementation AutofillEditItem |
| 28 | 28 |
| 29 @synthesize textFieldName = _textFieldName; | 29 @synthesize textFieldName = _textFieldName; |
| 30 @synthesize textFieldValue = _textFieldValue; | 30 @synthesize textFieldValue = _textFieldValue; |
| 31 @synthesize cardTypeIcon = _cardTypeIcon; | 31 @synthesize cardTypeIcon = _cardTypeIcon; |
| 32 @synthesize textFieldEnabled = _textFieldEnabled; | 32 @synthesize textFieldEnabled = _textFieldEnabled; |
| 33 @synthesize autofillType = _autofillType; | 33 @synthesize autofillType = _autofillType; |
| 34 @synthesize required = _required; |
| 34 | 35 |
| 35 - (instancetype)initWithType:(NSInteger)type { | 36 - (instancetype)initWithType:(NSInteger)type { |
| 36 self = [super initWithType:type]; | 37 self = [super initWithType:type]; |
| 37 if (self) { | 38 if (self) { |
| 38 self.cellClass = [AutofillEditCell class]; | 39 self.cellClass = [AutofillEditCell class]; |
| 39 } | 40 } |
| 40 return self; | 41 return self; |
| 41 } | 42 } |
| 42 | 43 |
| 43 #pragma mark CollectionViewItem | 44 #pragma mark CollectionViewItem |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 194 } |
| 194 | 195 |
| 195 #pragma mark - Accessibility | 196 #pragma mark - Accessibility |
| 196 | 197 |
| 197 - (NSString*)accessibilityLabel { | 198 - (NSString*)accessibilityLabel { |
| 198 return [NSString | 199 return [NSString |
| 199 stringWithFormat:@"%@, %@", self.textLabel.text, self.textField.text]; | 200 stringWithFormat:@"%@, %@", self.textLabel.text, self.textField.text]; |
| 200 } | 201 } |
| 201 | 202 |
| 202 @end | 203 @end |
| OLD | NEW |