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 @protocol TabCollectionDataSource; | |
| 13 | |
| 14 // Controller for a scrolling view displaying square cells that represent | 12 // Controller for a scrolling view displaying square cells that represent |
| 15 // the user's open tabs. | 13 // the user's open tabs. |
| 16 @interface TabCollectionViewController | 14 @interface TabCollectionViewController |
| 17 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> | 15 : UIViewController<TabCollectionConsumer, UICollectionViewDataSource> |
| 18 // A collection view of tabs. | 16 // A collection view of tabs. |
| 19 @property(nonatomic, weak, readonly) UICollectionView* tabs; | 17 @property(nonatomic, weak, readonly) UICollectionView* tabs; |
| 20 // Model for collection view. | 18 // Model for collection view. |
| 21 @property(nonatomic, strong, readonly) | 19 @property(nonatomic, strong, readonly) |
| 22 NSMutableArray<TabCollectionItem*>* items; | 20 NSMutableArray<TabCollectionItem*>* items; |
| 21 // Selected index of tab collection. | |
| 22 @property(nonatomic, assign) int selectedIndex; | |
|
marq (ping after 24h)
2017/06/02 11:31:00
Does this need to be public? The consumer protocol
edchin
2017/06/02 17:24:59
Done.
| |
| 23 @end | 23 @end |
| 24 | 24 |
| 25 #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 |