OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ |
7 | 7 |
8 @class TabCollectionItem; | 8 @class TabCollectionItem; |
9 | 9 |
10 // Interface to support insert/delete/updates to a tab collection. | 10 // Interface to support insert/delete/updates to a tab collection. |
(...skipping 18 matching lines...) Expand all Loading... |
29 // Replaces item at |index| with |item|. | 29 // Replaces item at |index| with |item|. |
30 - (void)replaceItemAtIndex:(int)index withItem:(TabCollectionItem*)item; | 30 - (void)replaceItemAtIndex:(int)index withItem:(TabCollectionItem*)item; |
31 | 31 |
32 // Selects the item at |selectedIndex|. | 32 // Selects the item at |selectedIndex|. |
33 - (void)setSelectedIndex:(int)selectedIndex; | 33 - (void)setSelectedIndex:(int)selectedIndex; |
34 | 34 |
35 // Populates tab collection with |items|. |SelectedIndex| is the index | 35 // Populates tab collection with |items|. |SelectedIndex| is the index |
36 // of the selected item in the tab collection. | 36 // of the selected item in the tab collection. |
37 - (void)populateItems:(NSArray<TabCollectionItem*>*)items | 37 - (void)populateItems:(NSArray<TabCollectionItem*>*)items |
38 selectedIndex:(int)selectedIndex; | 38 selectedIndex:(int)selectedIndex; |
| 39 |
| 40 // Updates the snapshot |index|. |
| 41 - (void)updateSnapshotAtIndex:(int)index; |
| 42 |
39 @end | 43 @end |
40 | 44 |
41 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ | 45 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_CONSUMER_H_ |
OLD | NEW |