| 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/ui/collection_view/cells/collection_view_item.h" | 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" | 11 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" |
| 12 | 12 |
| 13 // PriceItem is the model class corresponding to PriceCell. | 13 // PriceItem is the model class corresponding to PriceCell. |
| 14 @interface PriceItem : CollectionViewItem | 14 @interface PriceItem : CollectionViewItem |
| 15 | 15 |
| 16 // The accessory type to display on the trailing edge of the cell. | |
| 17 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType; | |
| 18 | |
| 19 // The leading item string. | 16 // The leading item string. |
| 20 @property(nonatomic, copy) NSString* item; | 17 @property(nonatomic, copy) NSString* item; |
| 21 | 18 |
| 22 // The middle notification string. | 19 // The middle notification string. |
| 23 @property(nonatomic, copy) NSString* notification; | 20 @property(nonatomic, copy) NSString* notification; |
| 24 | 21 |
| 25 // The trailing price string. | 22 // The trailing price string. |
| 26 @property(nonatomic, copy) NSString* price; | 23 @property(nonatomic, copy) NSString* price; |
| 27 | 24 |
| 28 @end | 25 @end |
| (...skipping 18 matching lines...) Expand all Loading... |
| 47 @interface PriceCell (TestingOnly) | 44 @interface PriceCell (TestingOnly) |
| 48 | 45 |
| 49 // Exposed for testing. | 46 // Exposed for testing. |
| 50 @property(nonatomic, readonly) CGFloat itemLabelTargetWidth; | 47 @property(nonatomic, readonly) CGFloat itemLabelTargetWidth; |
| 51 @property(nonatomic, readonly) CGFloat notificationLabelTargetWidth; | 48 @property(nonatomic, readonly) CGFloat notificationLabelTargetWidth; |
| 52 @property(nonatomic, readonly) CGFloat priceLabelTargetWidth; | 49 @property(nonatomic, readonly) CGFloat priceLabelTargetWidth; |
| 53 | 50 |
| 54 @end | 51 @end |
| 55 | 52 |
| 56 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_ITEM_H_ | 53 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PRICE_ITEM_H_ |
| OLD | NEW |