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_VIEW_CONTROLLE
R_H_ | 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTROLLE
R_H_ |
6 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTROLLE
R_H_ | 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTROLLE
R_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h" | 10 #import "ios/clean/chrome/browser/ui/tab_collection/tab_collection_consumer.h" |
11 | 11 |
| 12 @class SnapshotCache; |
| 13 |
12 // Controller for a scrolling view displaying square cells that represent | 14 // Controller for a scrolling view displaying square cells that represent |
13 // the user's open tabs. | 15 // the user's open tabs. |
14 @interface TabCollectionViewController | 16 @interface TabCollectionViewController |
15 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> | 17 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> |
16 // A collection view of tabs. | 18 // A collection view of tabs. |
17 @property(nonatomic, weak, readonly) UICollectionView* tabs; | 19 @property(nonatomic, weak, readonly) UICollectionView* tabs; |
18 // Model for collection view. | 20 // Model for collection view. |
19 @property(nonatomic, strong, readonly) | 21 @property(nonatomic, strong, readonly) |
20 NSMutableArray<TabCollectionItem*>* items; | 22 NSMutableArray<TabCollectionItem*>* items; |
| 23 // Cache used to retrieve snapshot images for tab cells. |
| 24 @property(nonatomic, weak) SnapshotCache* snapshotCache; |
21 @end | 25 @end |
22 | 26 |
23 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTRO
LLER_H_ | 27 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTRO
LLER_H_ |
OLD | NEW |