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

Side by Side Diff: ios/chrome/browser/payments/cells/payment_method_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PAYMENT_METHOD_ITEM_H_ 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENT_METHOD_ITEM_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENT_METHOD_ITEM_H_ 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENT_METHOD_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"
(...skipping 18 matching lines...) Expand all
29 @property(nonatomic, copy) NSString* notification; 29 @property(nonatomic, copy) NSString* notification;
30 30
31 // An image corresponding to the type of the payment method. 31 // An image corresponding to the type of the payment method.
32 @property(nonatomic, strong) UIImage* methodTypeIcon; 32 @property(nonatomic, strong) UIImage* methodTypeIcon;
33 33
34 // If YES, reserves room for the accessory type view regardless of whether the 34 // If YES, reserves room for the accessory type view regardless of whether the
35 // item has an accessory type. This is used to ensure the content area always 35 // item has an accessory type. This is used to ensure the content area always
36 // has the same size regardless of whether the accessory type is set. 36 // has the same size regardless of whether the accessory type is set.
37 @property(nonatomic, assign) BOOL reserveRoomForAccessoryType; 37 @property(nonatomic, assign) BOOL reserveRoomForAccessoryType;
38 38
39 // The accessory type to be shown in the cell.
40 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
41
42 @end 39 @end
43 40
44 // PaymentMethodCell implements an MDCCollectionViewCell subclass containing 41 // PaymentMethodCell implements an MDCCollectionViewCell subclass containing
45 // four optional text labels identifying and providing details about a payment 42 // four optional text labels identifying and providing details about a payment
46 // method and an image view displaying an icon representing the payment method's 43 // method and an image view displaying an icon representing the payment method's
47 // type. The image is laid out on the trailing edge of the cell while the labels 44 // type. The image is laid out on the trailing edge of the cell while the labels
48 // are laid out on the leading edge of the cell up to the leading edge of the 45 // are laid out on the leading edge of the cell up to the leading edge of the
49 // image view. The labels are truncated if necessary. 46 // image view. The labels are truncated if necessary.
50 @interface PaymentMethodCell : MDCCollectionViewCell 47 @interface PaymentMethodCell : MDCCollectionViewCell
51 48
52 // UILabels corresponding to |methodID|, |methodDetail|, |methodAddress|, and 49 // UILabels corresponding to |methodID|, |methodDetail|, |methodAddress|, and
53 // |notification|. 50 // |notification|.
54 @property(nonatomic, readonly, strong) UILabel* methodIDLabel; 51 @property(nonatomic, readonly, strong) UILabel* methodIDLabel;
55 @property(nonatomic, readonly, strong) UILabel* methodDetailLabel; 52 @property(nonatomic, readonly, strong) UILabel* methodDetailLabel;
56 @property(nonatomic, readonly, strong) UILabel* methodAddressLabel; 53 @property(nonatomic, readonly, strong) UILabel* methodAddressLabel;
57 @property(nonatomic, readonly, strong) UILabel* notificationLabel; 54 @property(nonatomic, readonly, strong) UILabel* notificationLabel;
58 55
59 @property(nonatomic, assign) BOOL reserveRoomForAccessoryType; 56 @property(nonatomic, assign) BOOL reserveRoomForAccessoryType;
60 57
61 // UIImageView containing the payment method type icon. 58 // UIImageView containing the payment method type icon.
62 @property(nonatomic, readonly, strong) UIImageView* methodTypeIconView; 59 @property(nonatomic, readonly, strong) UIImageView* methodTypeIconView;
63 60
64 @end 61 @end
65 62
66 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENT_METHOD_ITEM_H_ 63 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENT_METHOD_ITEM_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/payments/cells/autofill_profile_item.mm ('k') | ios/chrome/browser/payments/cells/payment_method_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698