Chromium Code Reviews| OLD | NEW |
|---|---|
| 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, nullable, copy) NSString* text; | 20 @property(nonatomic, nullable, copy) NSString* text; |
| 21 | 21 |
| 22 // The secondary text to display. | 22 // The secondary text to display. |
| 23 @property(nonatomic, nullable, copy) NSString* detailText; | 23 @property(nonatomic, nullable, copy) NSString* detailText; |
| 24 | 24 |
| 25 // The image to show. | |
| 26 @property(nonatomic, nullable, strong) UIImage* image; | |
| 27 | |
| 28 // The font of the main text. The Default value is the medium Roboto font of | 25 // The font of the main text. The Default value is the medium Roboto font of |
| 29 // size 14. | 26 // size 14. |
| 30 @property(nonatomic, null_resettable, copy) UIFont* textFont; | 27 @property(nonatomic, null_resettable, copy) UIFont* textFont; |
| 31 | 28 |
| 32 // The color of the main text. The Default value is the 900 tint color of the | 29 // The color of the main text. The Default value is the 900 tint color of the |
| 33 // grey palette. | 30 // grey palette. |
| 34 @property(nonatomic, null_resettable, copy) UIColor* textColor; | 31 @property(nonatomic, null_resettable, copy) UIColor* textColor; |
| 35 | 32 |
| 33 // The maximum number of lines of the main text. The Default value is 1. | |
|
lpromero
2017/03/23 12:23:35
default
Or: Default is 1.
gambard
2017/03/23 15:32:28
Done.
It is not consistent with the other comments
lpromero
2017/03/23 19:16:33
True. What happened to those?? Can you make it con
gambard
2017/03/24 08:54:05
Done.
| |
| 34 @property(nonatomic, assign) NSInteger numberOfTextLines; | |
| 35 | |
| 36 // The font of the secondary text. The Default value is the regular Roboto font | 36 // The font of the secondary text. The Default value is the regular Roboto font |
| 37 // of size 14. | 37 // of size 14. |
| 38 @property(nonatomic, null_resettable, copy) UIFont* detailTextFont; | 38 @property(nonatomic, null_resettable, copy) UIFont* detailTextFont; |
| 39 | 39 |
| 40 // The color of the secondary text. The default value is the 500 tint color of | 40 // The color of the secondary text. The default value is the 500 tint color of |
| 41 // the grey palette. | 41 // the grey palette. |
| 42 @property(nonatomic, null_resettable, copy) UIColor* detailTextColor; | 42 @property(nonatomic, null_resettable, copy) UIColor* detailTextColor; |
| 43 | 43 |
| 44 // The maximum number of lines of the secondary text. The Default value is 1. | |
| 45 @property(nonatomic, assign) NSInteger numberOfDetailTextLines; | |
| 46 | |
| 44 @end | 47 @end |
| 45 | 48 |
| 46 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM _H_ | 49 #endif // IOS_CHROME_BROWSER_UI_COLLECTION_VIEW_CELLS_COLLECTION_VIEW_TEXT_ITEM _H_ |
| OLD | NEW |