Chromium Code Reviews| 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..10b27bb1527ec10df54f2515b21a4dc3325babd3 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_ |
| +#import "ios/clean/chrome/browser/ui/tab_collection/tab_collection_item.h" |
|
sczs
2017/05/18 16:11:01
Can we forward declare it?
edchin
2017/05/18 17:30:26
Done.
|
| + |
| // 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; |
| +// Initializes tab collection with |items|. |
|
sczs
2017/05/18 16:11:01
initialize sounds like this would return a TabColl
edchin
2017/05/18 17:30:26
Done.
|
| +- (void)initializeItems:(NSArray<TabCollectionItem*>*)items; |
| @end |
| #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ |