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

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

Issue 2697573002: Modify article item in ContentSuggestions (Closed)
Patch Set: Cleanup 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 7415da2197132e8bf7c67b451b02da6317ba4890..60c711d79e4296d90594f740a3ffacbf1f0acbb2 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
@@ -7,6 +7,7 @@
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
+#include "url/gurl.h"
// Item for an article in the suggestions.
@interface ContentSuggestionsArticleItem : CollectionViewItem
@@ -16,10 +17,14 @@
- (instancetype)initWithType:(NSInteger)type
title:(NSString*)title
subtitle:(NSString*)subtitle
- image:(UIImage*)image NS_DESIGNATED_INITIALIZER;
+ image:(UIImage*)image
+ url:(const GURL&)url NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithType:(NSInteger)type NS_UNAVAILABLE;
+@property(nonatomic, strong) UIImage* image;
+@property(nonatomic, readonly, assign) GURL articleURL;
+
@end
// Corresponding cell for an article in the suggestions.

Powered by Google App Engine
This is Rietveld 408576698