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 @protocol TabCollectionDataSource; | 12 @protocol TabCollectionDataSource; |
13 | 13 |
14 // Controller for a scrolling view displaying square cells that represent | 14 // Controller for a scrolling view displaying square cells that represent |
15 // the user's open tabs. | 15 // the user's open tabs. |
16 @interface TabCollectionViewController | 16 @interface TabCollectionViewController |
17 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> | 17 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> |
18 // A collection view of tabs. | 18 // A collection view of tabs. |
19 @property(nonatomic, weak, readonly) UICollectionView* tabs; | 19 @property(nonatomic, weak, readonly) UICollectionView* tabs; |
20 // Data source for the tabs to be displayed. | 20 // Model for collection view. |
21 @property(nonatomic, weak) id<TabCollectionDataSource> dataSource; | 21 @property(nonatomic, strong, readonly) |
| 22 NSMutableArray<TabCollectionItem*>* items; |
22 @end | 23 @end |
23 | 24 |
24 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTRO
LLER_H_ | 25 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_VIEW_CONTRO
LLER_H_ |
OLD | NEW |