OLD | NEW |
| (Empty) |
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 | |
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/CollectionCells/
src/MaterialCollectionCells.h" | |
12 | |
13 @class MDCFlatButton; | |
14 | |
15 // SigninPromoItem is an item that configures a SigninPromoCell cell. | |
16 @interface SigninPromoItem : CollectionViewItem | |
17 | |
18 // Item image. | |
19 @property(nonatomic, copy) UIImage* profileImage; | |
20 @property(nonatomic, copy) NSString* profileName; | |
21 @property(nonatomic, copy) NSString* profileEmail; | |
22 | |
23 @end | |
24 | |
25 // Cell representation for SigninPromoItem. The cell displays an image, a title | |
26 // text label, a sign-in button and a "Not me" button. This is intended to be | |
27 // used to let the user sign-in without entering his/her password based on a | |
28 // profile already known in Chrome/Chromium. The user can also remove the | |
29 // suggested profile if (s)he is not related to the suggested profile, using the | |
30 // "Not me" button. | |
31 @interface SigninPromoCell : MDCCollectionViewCell | |
32 | |
33 // Profile imageView. | |
34 @property(nonatomic, readonly, strong) UIImageView* imageView; | |
35 // Cell title. | |
36 @property(nonatomic, readonly, strong) UILabel* textLabel; | |
37 // Signin button. | |
38 @property(nonatomic, readonly, strong) MDCFlatButton* signinButton; | |
39 // Not-me button. | |
40 @property(nonatomic, readonly, strong) MDCFlatButton* notMeButton; | |
41 | |
42 @end | |
43 | |
44 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_CELLS_SIGNIN_PROMO_ITEM_H_ | |
OLD | NEW |