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

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

Issue 2904053002: [ios] Active web state observer in tab collection. (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 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_

Powered by Google App Engine
This is Rietveld 408576698