OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_CELL_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_CELL_H_ |
6 #define IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_CELL_H_ | 6 #define IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_CELL_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 namespace web { | 10 @class CRWSessionEntry; |
11 class NavigationItem; | |
12 } | |
13 | 11 |
14 // Table cell used in TabHistoryViewController. | 12 // Table cell used in TabHistoryViewController. |
15 @interface TabHistoryCell : UICollectionViewCell | 13 @interface TabHistoryCell : UICollectionViewCell |
16 @property(assign, nonatomic) const web::NavigationItem* item; | 14 @property(strong, nonatomic) CRWSessionEntry* entry; |
17 @property(strong, nonatomic, readonly) UILabel* titleLabel; | 15 @property(weak, nonatomic, readonly) UILabel* titleLabel; |
18 @end | 16 @end |
19 | 17 |
20 // Header for a section of TabHistoryCells. | 18 // Header for a section of TabHistoryCells. |
21 @interface TabHistorySectionHeader : UICollectionReusableView | 19 @interface TabHistorySectionHeader : UICollectionReusableView |
22 @property(strong, nonatomic, readonly) UIImageView* iconView; | 20 @property(weak, nonatomic, readonly) UIImageView* iconView; |
23 @property(strong, nonatomic, readonly) UIView* lineView; | 21 @property(weak, nonatomic, readonly) UIView* lineView; |
24 @end | 22 @end |
25 | 23 |
26 // Footer for a section of TabHistoryCells. | 24 // Footer for a section of TabHistoryCells. |
27 @interface TabHistorySectionFooter : UICollectionReusableView | 25 @interface TabHistorySectionFooter : UICollectionReusableView |
28 @end | 26 @end |
29 | 27 |
30 #endif // IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_CELL_H_ | 28 #endif // IOS_CHROME_BROWSER_UI_HISTORY_TAB_HISTORY_CELL_H_ |
OLD | NEW |