Chromium Code Reviews| Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h |
| diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h |
| index 87422a9242bc72ceeb1b248e2a8f5cfd694fa8a6..c7e9302fc330de2e780e52f1158cd4ef8d0183c1 100644 |
| --- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h |
| +++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h |
| @@ -9,6 +9,10 @@ |
| #import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h" |
| #include "url/gurl.h" |
| +namespace base { |
| +class Time; |
| +} |
| + |
| // Item for an article in the suggestions. |
| @interface ContentSuggestionsArticleItem : CollectionViewItem |
| @@ -25,6 +29,8 @@ |
| @property(nonatomic, copy, readonly) NSString* title; |
| @property(nonatomic, strong) UIImage* image; |
| @property(nonatomic, readonly, assign) GURL articleURL; |
| +@property(nonatomic, copy) NSString* publisher; |
| +@property(nonatomic, assign) base::Time publishDate; |
| @end |
| @@ -35,6 +41,9 @@ |
| @property(nonatomic, readonly, strong) UILabel* subtitleLabel; |
| @property(nonatomic, readonly, strong) UIImageView* imageView; |
| +- (void)setPublisherName:(NSString*)publisherName |
| + date:(const base::Time&)publishDate; |
|
jif
2017/02/20 16:01:00
base::Time is basically just a int64_t, so passing
gambard
2017/02/21 08:49:46
Done.
|
| + |
| @end |
| #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_ARTICLE_ITEM_H_ |