| 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 b3163d26abb34d01c0bb5d8f5085d739b28e62c7..897ba7480426c34af36904aabf8d6680bb9fa27b 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
|
| @@ -10,6 +10,16 @@
|
| #import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
|
| #include "url/gurl.h"
|
|
|
| +@class ContentSuggestionsArticleItem;
|
| +
|
| +// Delegate for a ContentSuggestionsArticleItem.
|
| +@protocol ContentSuggestionsArticleItemDelegate
|
| +
|
| +// Loads the image associated with this item.
|
| +- (void)loadImageForArticleItem:(ContentSuggestionsArticleItem*)articleItem;
|
| +
|
| +@end
|
| +
|
| // Item for an article in the suggestions.
|
| @interface ContentSuggestionsArticleItem
|
| : CollectionViewItem<ContentSuggestionIDHolder>
|
| @@ -19,7 +29,7 @@
|
| - (instancetype)initWithType:(NSInteger)type
|
| title:(NSString*)title
|
| subtitle:(NSString*)subtitle
|
| - image:(UIImage*)image
|
| + delegate:(id<ContentSuggestionsArticleItemDelegate>)delegate
|
| url:(const GURL&)url NS_DESIGNATED_INITIALIZER;
|
|
|
| - (instancetype)initWithType:(NSInteger)type NS_UNAVAILABLE;
|
| @@ -27,6 +37,8 @@
|
| @property(nonatomic, copy, readonly) NSString* title;
|
| @property(nonatomic, strong) UIImage* image;
|
| @property(nonatomic, readonly, assign) GURL articleURL;
|
| +// Whether the image is being fetched.
|
| +@property(nonatomic, assign) BOOL imageBeingFetched;
|
|
|
| @end
|
|
|
|
|