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

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

Issue 2691593002: Connect ContentSuggestionsMediator to the ContentService (Closed)
Patch Set: Remove unused method 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_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

Powered by Google App Engine
This is Rietveld 408576698