OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ | |
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ | |
7 | |
8 #import <UIKit/UIKit.h> | |
9 | |
10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | |
11 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h" | |
12 | |
13 // AutofillProfileItem is the model class corresponding to AutofillProfileCell. | |
14 @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.
| |
15 | |
16 // Profile's name. | |
17 @property(nonatomic, copy) NSString* name; | |
18 | |
19 // Profile's address. | |
20 @property(nonatomic, copy) NSString* address; | |
21 | |
22 // Profile's phone number. | |
23 @property(nonatomic, copy) NSString* phoneNumber; | |
24 | |
25 // Profile's email address. | |
26 @property(nonatomic, copy) NSString* email; | |
27 | |
28 // The notification message. | |
29 @property(nonatomic, copy) NSString* notification; | |
30 | |
31 // The accessory type for the represented cell. | |
32 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType; | |
33 | |
34 @end | |
35 | |
36 // AutofillProfileItem implements an MDCCollectionViewCell subclass containing | |
37 // 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 | |
39 // cell, the rest of the labels are truncated if necessary. | |
40 @interface AutofillProfileCell : MDCCollectionViewCell | |
41 | |
42 // UILabels corresponding to |name|, |address|, |phoneNumber|, |email|, and | |
43 // |notification|. | |
44 @property(nonatomic, readonly, strong) UILabel* nameLabel; | |
45 @property(nonatomic, readonly, strong) UILabel* addressLabel; | |
46 @property(nonatomic, readonly, strong) UILabel* phoneNumberLabel; | |
47 @property(nonatomic, readonly, strong) UILabel* emailLabel; | |
48 @property(nonatomic, readonly, strong) UILabel* notificationLabel; | |
49 | |
50 @end | |
51 | |
52 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_AUTOFILL_PROFILE_ITEM_H_ | |
OLD | NEW |