Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: ios/chrome/browser/payments/cells/price_item.h

Issue 2814793003: Adds accessoryType property to CollectionViewItem (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/payments/cells/payment_method_item_unittest.mm ('k') | ios/chrome/browser/payments/cells/price_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698