Chromium Code Reviews| Index: ios/chrome/browser/ui/content_suggestions/content_suggestion.h |
| diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h |
| index 68bcf1b502694bf31c36dad50ebcf666f6069e49..f5b8bba1dd3112bf65080a2228ca313c6369c17a 100644 |
| --- a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h |
| +++ b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h |
| @@ -7,11 +7,33 @@ |
| #import <UIKit/UIKit.h> |
| +#import "ios/chrome/browser/ui/collection_view/collection_view_model.h" |
| +#include "url/gurl.h" |
| + |
| +@class ContentSuggestionsImageUpdater; |
| +@class ContentSuggestionsSectionInformation; |
| + |
| +// Enum defining the ItemType of this ContentSuggestionsCollectionUpdater. |
| +typedef NS_ENUM(NSInteger, ContentSuggestionsItemType) { |
| + ContentSuggestionsItemTypeText = kItemTypeEnumZero, |
| + ContentSuggestionsItemTypeArticle, |
| + ContentSuggestionsItemTypeExpand, |
| + ContentSuggestionsItemTypeStack, |
| + ContentSuggestionsItemTypeFavicon, |
| +}; |
| + |
| // Data for a suggestions item, compatible with Objective-C. |
| @interface ContentSuggestion : NSObject |
| @property(nonatomic, copy) NSString* title; |
| @property(nonatomic, strong) UIImage* image; |
| +@property(nonatomic, copy) NSString* text; |
|
lpromero
2017/02/14 10:52:27
Please add comments, as this is becoming a larger
gambard
2017/02/14 14:03:42
Done.
|
| +@property(nonatomic, assign) GURL url; |
| + |
| +@property(nonatomic, strong) ContentSuggestionsSectionInformation* section; |
| +@property(nonatomic, assign) ContentSuggestionsItemType type; |
|
lpromero
2017/02/14 10:52:27
I am not a fan of how the collection view world ge
gambard
2017/02/14 14:03:42
Not sure I understand. Can you clarify?
I am using
lpromero
2017/02/14 15:43:32
I know it helps with compiler, but it makes this m
gambard
2017/02/15 10:17:56
Done.
|
| + |
| +@property(nonatomic, strong) ContentSuggestionsImageUpdater* imageUpdater; |
|
lpromero
2017/02/14 10:52:27
Please add a comment for how it is used in the con
gambard
2017/02/14 14:03:42
Done.
|
| @end |