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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h

Issue 2706083002: Add publisher information on ContentSuggestionsArticles (Closed)
Patch Set: Fix compilation Created 3 years, 10 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/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..39ac7dd6e749704dee85176467b2a949f31be2cd 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,8 @@
@property(nonatomic, readonly, strong) UILabel* subtitleLabel;
@property(nonatomic, readonly, strong) UIImageView* imageView;
+- (void)setPublisherName:(NSString*)publisherName date:(base::Time)publishDate;
+
@end
#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_ARTICLE_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698