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

Unified Diff: ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h

Issue 2885983003: [ios] TabCollectionItem (Closed)
Patch Set: Address comments Created 3 years, 7 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/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h
diff --git a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h
index 5adc20ef9b0151188abdb513661c050f23252e47..1ca74ee3e1506288f08ec24ddcc19a0c11d521d1 100644
--- a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h
+++ b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h
@@ -5,18 +5,28 @@
#ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_
#define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_
+@class TabCollectionItem;
+
// Interface to support insert/delete/updates to a tab collection.
@protocol TabCollectionConsumer
-// Inserts item into tab collection at |index|.
-- (void)insertItemAtIndex:(int)index;
+// Inserts |item| into tab collection at |index|.
+- (void)insertItem:(TabCollectionItem*)item atIndex:(int)index;
// Deletes |index| from tab collection.
- (void)deleteItemAtIndex:(int)index;
-// Reloads |indexes| in tab collection.
-- (void)reloadItemsAtIndexes:(NSIndexSet*)indexes;
+// Moves item from |fromIndex| to |toIndex|.
+- (void)moveItemFromIndex:(int)fromIndex toIndex:(int)toIndex;
+
+// Replaces item at |index| with |item|.
+- (void)replaceItemAtIndex:(int)index withItem:(TabCollectionItem*)item;
+
+// Selects the item at |index|.
+- (void)selectItemAtIndex:(int)index;
+// Populates tab collection with |items|.
+- (void)populateItems:(NSArray<TabCollectionItem*>*)items;
@end
#endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_

Powered by Google App Engine
This is Rietveld 408576698