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_PAYMENTS_TEXT_ITEM_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_TEXT_ITEM_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_TEXT_ITEM_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_TEXT_ITEM_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
| 10 #import "ios/chrome/browser/payments/cells/payments_has_accessory_type.h" |
10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | 11 #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 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" |
12 | 13 |
13 // PaymentsTextItem is the model class corresponding to PaymentsTextCell. | 14 // PaymentsTextItem is the model class corresponding to PaymentsTextCell. |
14 @interface PaymentsTextItem : CollectionViewItem | 15 @interface PaymentsTextItem : CollectionViewItem<PaymentsHasAccessoryType> |
15 | 16 |
16 // The main text to display. | 17 // The main text to display. |
17 @property(nonatomic, copy) NSString* text; | 18 @property(nonatomic, copy) NSString* text; |
18 | 19 |
19 // The secondary text to display. | 20 // The secondary text to display. |
20 @property(nonatomic, copy) NSString* detailText; | 21 @property(nonatomic, copy) NSString* detailText; |
21 | 22 |
22 // The image to display. | 23 // The image to display. |
23 @property(nonatomic, strong) UIImage* image; | 24 @property(nonatomic, strong) UIImage* image; |
24 | 25 |
(...skipping 16 matching lines...) Expand all Loading... |
41 | 42 |
42 // UILabel corresponding to |detailText| from the item. | 43 // UILabel corresponding to |detailText| from the item. |
43 @property(nonatomic, readonly, strong) UILabel* detailTextLabel; | 44 @property(nonatomic, readonly, strong) UILabel* detailTextLabel; |
44 | 45 |
45 // UIImageView corresponding to |image| from the item. | 46 // UIImageView corresponding to |image| from the item. |
46 @property(nonatomic, readonly, strong) UIImageView* imageView; | 47 @property(nonatomic, readonly, strong) UIImageView* imageView; |
47 | 48 |
48 @end | 49 @end |
49 | 50 |
50 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_TEXT_ITEM_H_ | 51 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_TEXT_ITEM_H_ |
OLD | NEW |