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

Side by Side Diff: ios/chrome/browser/ui/collection_view/cells/collection_view_text_item.h

Issue 2627323003: Expose font and color of the main and secondary texts in CollectionViewTextItem (Closed)
Patch Set: Created 3 years, 11 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_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM_H_
6 #define IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM_H_ 6 #define IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_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 // Collection view item to represent and configure an MDCCollectionViewTextCell. 13 // Collection view item to represent and configure an MDCCollectionViewTextCell.
14 @interface CollectionViewTextItem : CollectionViewItem 14 @interface CollectionViewTextItem : CollectionViewItem
15 15
16 // The accessory type for the represented cell. 16 // The accessory type for the represented cell.
17 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType; 17 @property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
18 18
19 // The main text to display. 19 // The main text to display.
20 @property(nonatomic, copy) NSString* text; 20 @property(nonatomic, copy) NSString* text;
21 21
22 // The secondary text to display. 22 // The secondary text to display.
23 @property(nonatomic, copy) NSString* detailText; 23 @property(nonatomic, copy) NSString* detailText;
24 24
25 // The image to show. 25 // The image to show.
26 @property(nonatomic, strong) UIImage* image; 26 @property(nonatomic, strong) UIImage* image;
27 27
28 // The font of the main text.
lpromero 2017/01/13 10:13:26 Add to these comments which default value is used.
Moe 2017/01/13 15:28:19 Done.
29 @property(nonatomic, copy) UIFont* textFont;
lpromero 2017/01/13 10:13:26 Also add the null_resettable attribute if you impl
Moe 2017/01/13 15:28:19 Done. Adding null_resettable to these properties r
30
31 // The color of the main text.
32 @property(nonatomic, copy) UIColor* textColor;
33
34 // The font of the secondary text.
35 @property(nonatomic, copy) UIFont* detailTextFont;
36
37 // The color of the secondary text.
38 @property(nonatomic, copy) UIColor* detailTextColor;
39
28 @end 40 @end
29 41
30 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM _H_ 42 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698