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 1ca74ee3e1506288f08ec24ddcc19a0c11d521d1..f3e83bc676f352883f9d46f437561a4729a184c2 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 |
@@ -11,13 +11,17 @@ |
@protocol TabCollectionConsumer |
// Inserts |item| into tab collection at |index|. |
marq (ping after 24h)
2017/05/30 11:09:43
Here and below: document what |selectedIndex| mean
edchin
2017/06/01 23:52:28
Done.
|
-- (void)insertItem:(TabCollectionItem*)item atIndex:(int)index; |
+- (void)insertItem:(TabCollectionItem*)item |
+ atIndex:(int)index |
+ selectedIndex:(int)selectedIndex; |
// Deletes |index| from tab collection. |
-- (void)deleteItemAtIndex:(int)index; |
+- (void)deleteItemAtIndex:(int)index selectedIndex:(int)selectedIndex; |
// Moves item from |fromIndex| to |toIndex|. |
-- (void)moveItemFromIndex:(int)fromIndex toIndex:(int)toIndex; |
+- (void)moveItemFromIndex:(int)fromIndex |
+ toIndex:(int)toIndex |
+ selectedIndex:(int)selectedIndex; |
// Replaces item at |index| with |item|. |
- (void)replaceItemAtIndex:(int)index withItem:(TabCollectionItem*)item; |
marq (ping after 24h)
2017/05/30 11:09:43
Does this also need a |selectedIndex| parameter?
edchin
2017/06/01 23:52:28
The selection does not change with a replace.
|
@@ -26,7 +30,8 @@ |
- (void)selectItemAtIndex:(int)index; |
// Populates tab collection with |items|. |
-- (void)populateItems:(NSArray<TabCollectionItem*>*)items; |
+- (void)populateItems:(NSArray<TabCollectionItem*>*)items |
+ selectedIndex:(int)selectedIndex; |
@end |
#endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ |