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

Unified Diff: ios/chrome/browser/ui/collection_view/collection_view_model.h

Issue 2750373004: Remove generics for header and footer of CollectionViewModel (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/collection_view/collection_view_model.h
diff --git a/ios/chrome/browser/ui/collection_view/collection_view_model.h b/ios/chrome/browser/ui/collection_view/collection_view_model.h
index 0f0613b539195a1b3717500f722cf1a55cf0fd75..274cf048f76a12e6b2779e2bbdf50652fe44acad 100644
--- a/ios/chrome/browser/ui/collection_view/collection_view_model.h
+++ b/ios/chrome/browser/ui/collection_view/collection_view_model.h
@@ -85,11 +85,11 @@ const NSInteger kItemTypeEnumZero = 100;
- (void)removeSectionWithIdentifier:(NSInteger)sectionIdentifier;
// Sets the header item for the section with the given |sectionIdentifier|.
-- (void)setHeader:(ObjectType)header
+- (void)setHeader:(CollectionViewItem*)header
forSectionWithIdentifier:(NSInteger)sectionIdentifier;
// Sets the footer item for the section with the given |sectionIdentifier|.
-- (void)setFooter:(ObjectType)footer
+- (void)setFooter:(CollectionViewItem*)footer
forSectionWithIdentifier:(NSInteger)sectionIdentifier;
#pragma mark Query model coordinates from index paths
@@ -118,20 +118,22 @@ const NSInteger kItemTypeEnumZero = 100;
- (ObjectType)itemAtIndexPath:(NSIndexPath*)indexPath;
// Returns the header for the given |section|.
-- (ObjectType)headerForSection:(NSInteger)section;
+- (CollectionViewItem*)headerForSection:(NSInteger)section;
// Returns the footer for the given |section|.
-- (ObjectType)footerForSection:(NSInteger)section;
+- (CollectionViewItem*)footerForSection:(NSInteger)section;
// Returns an array of items in the section with the given identifier.
- (NSArray<ObjectType>*)itemsInSectionWithIdentifier:
(NSInteger)sectionIdentifier;
// Returns the header for the section with the given |sectionIdentifier|.
-- (ObjectType)headerForSectionWithIdentifier:(NSInteger)sectionIdentifier;
+- (CollectionViewItem*)headerForSectionWithIdentifier:
+ (NSInteger)sectionIdentifier;
// Returns the footer for the section with the given |sectionIdentifier|.
-- (ObjectType)footerForSectionWithIdentifier:(NSInteger)sectionIdentifier;
+- (CollectionViewItem*)footerForSectionWithIdentifier:
+ (NSInteger)sectionIdentifier;
#pragma mark Query index paths from model coordinates
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698