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

Unified Diff: ios/chrome/browser/payments/cells/payments_text_item.h

Issue 2821043002: [Payment Request] Adds a secondary text label to PaymentsTextCell (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/payments/cells/payments_text_item.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/payments/cells/payments_text_item.h
diff --git a/ios/chrome/browser/payments/cells/payments_text_item.h b/ios/chrome/browser/payments/cells/payments_text_item.h
index ab3c143cd126c9e84743efe0ac7f4acbb76abe0f..8308ac2f01d3f52b7092bd7a54a4e726d91847c3 100644
--- a/ios/chrome/browser/payments/cells/payments_text_item.h
+++ b/ios/chrome/browser/payments/cells/payments_text_item.h
@@ -13,26 +13,35 @@
// PaymentsTextItem is the model class corresponding to PaymentsTextCell.
@interface PaymentsTextItem : CollectionViewItem
-// The message to display.
+// The main text to display.
@property(nonatomic, copy) NSString* text;
+// The secondary text to display.
+@property(nonatomic, copy) NSString* detailText;
+
// The image to display.
@property(nonatomic, strong) UIImage* image;
+// The accessory type for the represented cell.
+@property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
+
@end
// PaymentsTextCell implements a MDCCollectionViewCell subclass containing
-// a text label and an optional image. The label is laid out to fill the full
-// width of the cell and is wrapped as needed to fit in the cell. The image is
-// laid out on the leading edge of the cell. The text label is laid out on the
-// the trailing edge of the image, if one exists, or the leading edge of the
-// cell otherwise, up to the trailing edge of the cell. This is suitable for
-// displaying text that needs to wrap which may or may not feature an image.
+// a main text label, a secondary text label and an optional image. The labels
+// are laid out to fill the full width of the cell and are wrapped as needed to
+// fit in the cell. The image is laid out on the leading edge of the cell. The
+// text labels are laid out on the the trailing edge of the image, if one
+// exists, or the leading edge of the cell otherwise, up to the trailing edge of
+// the cell.
@interface PaymentsTextCell : MDCCollectionViewCell
// UILabel corresponding to |text| from the item.
@property(nonatomic, readonly, strong) UILabel* textLabel;
+// UILabel corresponding to |detailText| from the item.
+@property(nonatomic, readonly, strong) UILabel* detailTextLabel;
+
// UIImageView corresponding to |image| from the item.
@property(nonatomic, readonly, strong) UIImageView* imageView;
« no previous file with comments | « no previous file | ios/chrome/browser/payments/cells/payments_text_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698