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 | |
16 // PageInfoItem is the model class corresponding to PageInfoCell. | 13 // PageInfoItem is the model class corresponding to PageInfoCell. |
17 @interface PageInfoItem : CollectionViewItem | 14 @interface PageInfoItem : CollectionViewItem |
18 | 15 |
19 // The favicon image to display. | 16 // The favicon image to display. |
20 @property(nonatomic, strong) UIImage* pageFavicon; | 17 @property(nonatomic, strong) UIImage* pageFavicon; |
21 | 18 |
22 // The page title text to display. | 19 // The page title text to display. |
23 @property(nonatomic, copy) NSString* pageTitle; | 20 @property(nonatomic, copy) NSString* pageTitle; |
24 | 21 |
25 // The page host text to display. | 22 // The page host text to display. |
(...skipping 12 matching lines...) Expand all Loading... |
38 // UILabels containing the page's title and host. | 35 // UILabels containing the page's title and host. |
39 @property(nonatomic, readonly, strong) UILabel* pageTitleLabel; | 36 @property(nonatomic, readonly, strong) UILabel* pageTitleLabel; |
40 @property(nonatomic, readonly, strong) UILabel* pageHostLabel; | 37 @property(nonatomic, readonly, strong) UILabel* pageHostLabel; |
41 | 38 |
42 // UIImageView containing the page's favicon. | 39 // UIImageView containing the page's favicon. |
43 @property(nonatomic, readonly, strong) UIImageView* pageFaviconView; | 40 @property(nonatomic, readonly, strong) UIImageView* pageFaviconView; |
44 | 41 |
45 @end | 42 @end |
46 | 43 |
47 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ | 44 #endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAGE_INFO_ITEM_H_ |
OLD | NEW |