OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
lpromero
2017/03/09 10:55:02
2017
Prefer using ./tools/boilerplate.py ios/chro
jlebel
2017/03/09 20:34:07
Acknowledged.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ | |
6 #define IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ | |
7 | |
8 #import <UIKit/UIKit.h> | |
9 | |
10 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" | |
11 #import "ios/third_party/material_components_ios/src/components/Buttons/src/Mate rialButtons.h" | |
lpromero
2017/03/09 10:55:02
Not needed in the header.
jlebel
2017/03/09 20:34:07
Done.
| |
12 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h" | |
13 | |
14 // SigninPromoItem is an Item that displays an Image, a title text label and a | |
lpromero
2017/03/09 10:55:02
Remove "is an Item that". Actually, the item never
| |
15 // detail text label. | |
16 // This is intended to be used as an sign in Item which contains a default | |
lpromero
2017/03/09 10:55:02
a sign-in item
| |
17 // avatar and information | |
lpromero
2017/03/09 10:55:02
Unwrap.
jlebel
2017/03/09 20:34:07
Done.
| |
18 // letting the user know that they are not signed in, and that tapping on the | |
19 // Item will allow them | |
lpromero
2017/03/09 10:55:02
Unwrap.
lpromero
2017/03/09 10:55:02
They tap on the button, not the cell, no?
jlebel
2017/03/09 20:34:07
Done.
| |
20 // to authenticate and sign in. | |
21 | |
22 @interface SigninPromoItem : CollectionViewItem | |
23 | |
24 // Item image. | |
25 @property(nonatomic, copy) UIImage* image; | |
26 @property(nonatomic, copy) NSString* profileName; | |
27 @property(nonatomic, copy) NSString* profileEmail; | |
28 | |
29 @end | |
30 | |
31 // Cell representation for SigninPromoItem. | |
32 @interface SigninPromoCell : MDCCollectionViewCell | |
33 | |
34 // Configures the cell with the profile data. | |
35 - (void)configureWithProfileName:(NSString*)profileName | |
36 profileEmail:(NSString*)profileEmail | |
37 profileImage:(UIImage*)profileImage; | |
38 | |
39 @end | |
40 | |
41 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ | |
OLD | NEW |