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

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

Issue 2805273002: [Payment Request] Selector view controller (Closed)
Patch Set: Addressed comments 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
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..ecc36719428756c98707ccd87d08fdf37d35621a 100644
--- a/ios/chrome/browser/payments/cells/payments_text_item.h
+++ b/ios/chrome/browser/payments/cells/payments_text_item.h
@@ -14,10 +14,16 @@
@interface PaymentsTextItem : CollectionViewItem
// The message to display.
-@property(nonatomic, copy) NSString* text;
+@property(nonatomic, nullable, copy) NSString* text;
// The image to display.
-@property(nonatomic, strong) UIImage* image;
+@property(nonatomic, nullable, strong) UIImage* image;
+
+// The font of the text. Default is the regular Roboto font of size 14.
+@property(nonatomic, null_resettable, copy) UIFont* textFont;
lpromero 2017/04/11 15:59:06 This goes on the "styling" idea territory. Is this
Moe 2017/04/14 06:05:49 Removed the style properties from the item and mov
+
+// The color of the text. Default is the 900 tint color of the grey palette.
+@property(nonatomic, null_resettable, copy) UIColor* textColor;
@end
@@ -31,10 +37,10 @@
@interface PaymentsTextCell : MDCCollectionViewCell
// UILabel corresponding to |text| from the item.
-@property(nonatomic, readonly, strong) UILabel* textLabel;
+@property(nonatomic, readonly, nullable, strong) UILabel* textLabel;
// UIImageView corresponding to |image| from the item.
-@property(nonatomic, readonly, strong) UIImageView* imageView;
+@property(nonatomic, readonly, nullable, strong) UIImageView* imageView;
@end

Powered by Google App Engine
This is Rietveld 408576698