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

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

Issue 2761263003: Allow CollectionViewModel/Controller queries without SectionIdentifier (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
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 274cf048f76a12e6b2779e2bbdf50652fe44acad..a69e20c832c6495d084b5a6b138f55438d388a76 100644
--- a/ios/chrome/browser/ui/collection_view/collection_view_model.h
+++ b/ios/chrome/browser/ui/collection_view/collection_view_model.h
@@ -176,6 +176,12 @@ const NSInteger kItemTypeEnumZero = 100;
- (NSIndexPath*)indexPathForItem:(ObjectType)item
inSectionWithIdentifier:(NSInteger)sectionIdentifier;
+// Returns whether |item| exists.
+- (BOOL)hasItem:(ObjectType)item;
+
+// Returns the index path corresponding to the given |item|.
+- (NSIndexPath*)indexPathForItem:(ObjectType)item;
+
#pragma mark UICollectionView data sourcing
// Returns the number of collection view sections.

Powered by Google App Engine
This is Rietveld 408576698