Chromium Code Reviews| Index: ios/chrome/browser/payments/cells/autofill_profile_item.h |
| diff --git a/ios/chrome/browser/payments/cells/autofill_profile_item.h b/ios/chrome/browser/payments/cells/autofill_profile_item.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bae30c832bf65ba6d3f345590861c87e76152a03 |
| --- /dev/null |
| +++ b/ios/chrome/browser/payments/cells/autofill_profile_item.h |
| @@ -0,0 +1,52 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ |
| +#define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ |
| + |
| +#import <UIKit/UIKit.h> |
| + |
| +#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
| +#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h" |
| + |
| +// AutofillProfileItem is the model class corresponding to AutofillProfileCell. |
| +@interface AutofillProfileItem : CollectionViewItem |
|
lpromero
2017/02/27 17:52:10
Can you add some examples to the material_cell_cat
Moe
2017/02/27 20:49:42
Done.
|
| + |
| +// Profile's name. |
| +@property(nonatomic, copy) NSString* name; |
| + |
| +// Profile's address. |
| +@property(nonatomic, copy) NSString* address; |
| + |
| +// Profile's phone number. |
| +@property(nonatomic, copy) NSString* phoneNumber; |
| + |
| +// Profile's email address. |
| +@property(nonatomic, copy) NSString* email; |
| + |
| +// The notification message. |
| +@property(nonatomic, copy) NSString* notification; |
| + |
| +// The accessory type for the represented cell. |
| +@property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType; |
| + |
| +@end |
| + |
| +// AutofillProfileItem implements an MDCCollectionViewCell subclass containing |
| +// five optional text labels. Each label is laid out to fill the full width of |
| +// the cell. |nameLabel| and |addressLabel| are wrapped as needed to fit in the |
| +// cell, the rest of the labels are truncated if necessary. |
| +@interface AutofillProfileCell : MDCCollectionViewCell |
| + |
| +// UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and |
| +// |notification|. |
| +@property(nonatomic, readonly, strong) UILabel* nameLabel; |
| +@property(nonatomic, readonly, strong) UILabel* addressLabel; |
| +@property(nonatomic, readonly, strong) UILabel* phoneNumberLabel; |
| +@property(nonatomic, readonly, strong) UILabel* emailLabel; |
| +@property(nonatomic, readonly, strong) UILabel* notificationLabel; |
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ |