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_PRICE_ITEM_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_ITEM_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_ITEM_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_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 // PriceItem is the model class corresponding to PriceCell. | 14 // PriceItem is the model class corresponding to PriceCell. |
14 @interface PriceItem : CollectionViewItem | 15 @interface PriceItem : CollectionViewItem<PaymentsHasAccessoryType> |
15 | |
16 // The accessory type to display on the trailing edge of the cell. | |
17 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType; | |
18 | 16 |
19 // The leading item string. | 17 // The leading item string. |
20 @property(nonatomic, copy) NSString* item; | 18 @property(nonatomic, copy) NSString* item; |
21 | 19 |
22 // The middle notification string. | 20 // The middle notification string. |
23 @property(nonatomic, copy) NSString* notification; | 21 @property(nonatomic, copy) NSString* notification; |
24 | 22 |
25 // The trailing price string. | 23 // The trailing price string. |
26 @property(nonatomic, copy) NSString* price; | 24 @property(nonatomic, copy) NSString* price; |
27 | 25 |
(...skipping 19 matching lines...) Expand all Loading... |
47 @interface PriceCell (TestingOnly) | 45 @interface PriceCell (TestingOnly) |
48 | 46 |
49 // Exposed for testing. | 47 // Exposed for testing. |
50 @property(nonatomic, readonly) CGFloat itemLabelTargetWidth; | 48 @property(nonatomic, readonly) CGFloat itemLabelTargetWidth; |
51 @property(nonatomic, readonly) CGFloat notificationLabelTargetWidth; | 49 @property(nonatomic, readonly) CGFloat notificationLabelTargetWidth; |
52 @property(nonatomic, readonly) CGFloat priceLabelTargetWidth; | 50 @property(nonatomic, readonly) CGFloat priceLabelTargetWidth; |
53 | 51 |
54 @end | 52 @end |
55 | 53 |
56 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_ITEM_H_ | 54 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_ITEM_H_ |
OLD | NEW |