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_ |