| 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..518958ebb084dc25e7ce657e14de5cb39a1d9c59 100644
|
| --- a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
|
| +++ b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
|
| @@ -7,11 +7,32 @@
|
|
|
| #import <UIKit/UIKit.h>
|
|
|
| -// Data for a suggestions item, compatible with Objective-C.
|
| +#include "url/gurl.h"
|
| +
|
| +@class ContentSuggestionsSectionInformation;
|
| +
|
| +// Enum defining the type of a ContentSuggestions.
|
| +typedef NS_ENUM(NSInteger, ContentSuggestionType) {
|
| + ContentSuggestionTypeArticle
|
| +};
|
| +
|
| +// Data for a suggestions item, compatible with Objective-C. Mostly acts as a
|
| +// wrapper for ntp_snippets::ContentSuggestion.
|
| @interface ContentSuggestion : NSObject
|
|
|
| -@property(nonatomic, copy) NSString* title;
|
| -@property(nonatomic, strong) UIImage* image;
|
| +// Title of the suggestion.
|
| +@property(nonatomic, copy, nullable) NSString* title;
|
| +// Text for the suggestion.
|
| +@property(nonatomic, copy, nullable) NSString* text;
|
| +// Image for the suggestion.
|
| +@property(nonatomic, strong, nullable) UIImage* image;
|
| +// URL associated with the suggestion.
|
| +@property(nonatomic, assign) GURL url;
|
| +
|
| +// Section information in which this suggestion should be.
|
| +@property(nonatomic, strong, nullable)
|
| + ContentSuggestionsSectionInformation* section;
|
| +@property(nonatomic, assign) ContentSuggestionType type;
|
|
|
| @end
|
|
|
|
|