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_suggestions_section_information.h

Issue 2691593002: Connect ContentSuggestionsMediator to the ContentService (Closed)
Patch Set: Address comments 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_section_information.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.h
index 92545c166d28a3203e860b8cff8e9d7457c6f312..2a0f2cab5645fb99333f6fb854938838e8f58fa1 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.h
@@ -27,27 +27,25 @@ typedef NS_ENUM(NSInteger, ContentSuggestionsSectionID) {
// Do not use this. It will trigger a DCHECK.
// Do not add value after this one.
- ContentSuggestionsSectionCount
+ ContentSuggestionsSectionUnknown
};
// Contains the information needed to display the section.
@interface ContentSuggestionsSectionInformation : NSObject
-- (instancetype)initWithID:(ContentSuggestionsSectionID)ID
- emptyCell:(CollectionViewItem*)emptyCell
- layout:(ContentSuggestionsSectionLayout)layout
- title:(NSString*)title NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithSectionID:(ContentSuggestionsSectionID)sectionID
+ NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
// Item to display when the section is empty. If nil the section should not be
// displayed when empty.
-@property(nonatomic, strong, readonly) CollectionViewItem* emptyCell;
+@property(nonatomic, strong) CollectionViewItem* emptyCell;
// Layout to display the content of the section.
-@property(nonatomic, assign, readonly) ContentSuggestionsSectionLayout layout;
+@property(nonatomic, assign) ContentSuggestionsSectionLayout layout;
// ID of the section. Used for ordering.
-@property(nonatomic, assign, readonly) ContentSuggestionsSectionID ID;
+@property(nonatomic, assign, readonly) ContentSuggestionsSectionID sectionID;
// Title for the section.
-@property(nonatomic, copy, readonly) NSString* title;
+@property(nonatomic, copy) NSString* title;
@end

Powered by Google App Engine
This is Rietveld 408576698