Chromium Code Reviews| 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 extern const CGSize kTabCollectionTabCellSize; | 12 extern const CGSize kTabCollectionTabCellSize; |
| 13 | 13 |
| 14 @class SnapshotCache; | |
| 15 | |
| 14 // Controller for a scrolling view displaying square cells that represent | 16 // Controller for a scrolling view displaying square cells that represent |
| 15 // the user's open tabs. | 17 // the user's open tabs. |
| 16 @interface TabCollectionViewController | 18 @interface TabCollectionViewController |
| 17 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> | 19 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> |
| 18 // A collection view of tabs. | 20 // A collection view of tabs. |
| 19 @property(nonatomic, weak, readonly) UICollectionView* tabs; | 21 @property(nonatomic, weak, readonly) UICollectionView* tabs; |
| 20 // Model for collection view. | 22 // Model for collection view. |
| 21 @property(nonatomic, strong, readonly) | 23 @property(nonatomic, strong, readonly) |
| 22 NSMutableArray<TabCollectionItem*>* items; | 24 NSMutableArray<TabCollectionItem*>* items; |
| 25 // Cache used to retrieve snapshot images for tab cells. | |
| 26 @property(nonatomic, strong) SnapshotCache* snapshotCache; | |
|
marq (ping after 24h)
2017/07/06 12:44:49
Does the view controller need a strong reference t
edchin
2017/07/07 03:18:11
Done.
| |
| 23 @end | 27 @end |
| 24 | 28 |
| 25 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTRO LLER_H_ | 29 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTRO LLER_H_ |
| OLD | NEW |