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

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

Issue 2971093002: [ios] Take snapshot for tab grid. (Closed)
Patch Set: Update unit test. Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698