| 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_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | 10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Profile's phone number. | 22 // Profile's phone number. |
| 23 @property(nonatomic, copy) NSString* phoneNumber; | 23 @property(nonatomic, copy) NSString* phoneNumber; |
| 24 | 24 |
| 25 // Profile's email address. | 25 // Profile's email address. |
| 26 @property(nonatomic, copy) NSString* email; | 26 @property(nonatomic, copy) NSString* email; |
| 27 | 27 |
| 28 // The notification message. | 28 // The notification message. |
| 29 @property(nonatomic, copy) NSString* notification; | 29 @property(nonatomic, copy) NSString* notification; |
| 30 | 30 |
| 31 // The accessory type for the represented cell. | |
| 32 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType; | |
| 33 | |
| 34 @end | 31 @end |
| 35 | 32 |
| 36 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing | 33 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing |
| 37 // five optional text labels. Each label is laid out to fill the full width of | 34 // five optional text labels. Each label is laid out to fill the full width of |
| 38 // the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the | 35 // the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the |
| 39 // cell, the rest of the labels are truncated if necessary. | 36 // cell, the rest of the labels are truncated if necessary. |
| 40 @interface AutofillProfileCell : MDCCollectionViewCell | 37 @interface AutofillProfileCell : MDCCollectionViewCell |
| 41 | 38 |
| 42 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and | 39 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and |
| 43 // |notification|. | 40 // |notification|. |
| 44 @property(nonatomic, readonly, strong) UILabel* nameLabel; | 41 @property(nonatomic, readonly, strong) UILabel* nameLabel; |
| 45 @property(nonatomic, readonly, strong) UILabel* addressLabel; | 42 @property(nonatomic, readonly, strong) UILabel* addressLabel; |
| 46 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel; | 43 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel; |
| 47 @property(nonatomic, readonly, strong) UILabel* emailLabel; | 44 @property(nonatomic, readonly, strong) UILabel* emailLabel; |
| 48 @property(nonatomic, readonly, strong) UILabel* notificationLabel; | 45 @property(nonatomic, readonly, strong) UILabel* notificationLabel; |
| 49 | 46 |
| 50 @end | 47 @end |
| 51 | 48 |
| 52 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ | 49 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ |
| OLD | NEW |