OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | 10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
11 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" | 11 #import "ios/third_party/material_components_ios/src/components/CollectionCells/
src/MaterialCollectionCells.h" |
12 | 12 |
| 13 // The accessibility identifier for the favicon image view. |
| 14 extern NSString* const kPageInfoFaviconImageViewId; |
| 15 |
13 // PageInfoItem is the model class corresponding to PageInfoCell. | 16 // PageInfoItem is the model class corresponding to PageInfoCell. |
14 @interface PageInfoItem : CollectionViewItem | 17 @interface PageInfoItem : CollectionViewItem |
15 | 18 |
16 // The favicon image to display. | 19 // The favicon image to display. |
17 @property(nonatomic, strong) UIImage* pageFavicon; | 20 @property(nonatomic, strong) UIImage* pageFavicon; |
18 | 21 |
19 // The page title text to display. | 22 // The page title text to display. |
20 @property(nonatomic, copy) NSString* pageTitle; | 23 @property(nonatomic, copy) NSString* pageTitle; |
21 | 24 |
22 // The page host text to display. | 25 // The page host text to display. |
(...skipping 12 matching lines...) Expand all Loading... |
35 // UILabels containing the page's title and host. | 38 // UILabels containing the page's title and host. |
36 @property(nonatomic, readonly, strong) UILabel* pageTitleLabel; | 39 @property(nonatomic, readonly, strong) UILabel* pageTitleLabel; |
37 @property(nonatomic, readonly, strong) UILabel* pageHostLabel; | 40 @property(nonatomic, readonly, strong) UILabel* pageHostLabel; |
38 | 41 |
39 // UIImageView containing the page's favicon. | 42 // UIImageView containing the page's favicon. |
40 @property(nonatomic, readonly, strong) UIImageView* pageFaviconView; | 43 @property(nonatomic, readonly, strong) UIImageView* pageFaviconView; |
41 | 44 |
42 @end | 45 @end |
43 | 46 |
44 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ | 47 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ |
OLD | NEW |