OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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_AUTHENTICATION_SIGN_PROMO_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGN_PROMO_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGN_PROMO_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGN_PROMO_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 @class MDCFlatButton; | 10 @class MDCFlatButton; |
(...skipping 18 matching lines...) Expand all Loading... | |
29 // - the label for |textLabel| | 29 // - the label for |textLabel| |
30 // - the title for |primaryButton| | 30 // - the title for |primaryButton| |
31 // - the title for |secondaryButton| | 31 // - the title for |secondaryButton| |
32 @interface SigninPromoView : UIView | 32 @interface SigninPromoView : UIView |
33 | 33 |
34 @property(nonatomic) SigninPromoViewMode mode; | 34 @property(nonatomic) SigninPromoViewMode mode; |
35 @property(nonatomic, readonly) UIImageView* imageView; | 35 @property(nonatomic, readonly) UIImageView* imageView; |
36 @property(nonatomic, readonly) UILabel* textLabel; | 36 @property(nonatomic, readonly) UILabel* textLabel; |
37 @property(nonatomic, readonly) MDCFlatButton* primaryButton; | 37 @property(nonatomic, readonly) MDCFlatButton* primaryButton; |
38 @property(nonatomic, readonly) MDCFlatButton* secondaryButton; | 38 @property(nonatomic, readonly) MDCFlatButton* secondaryButton; |
39 @property(nonatomic, readonly) UIButton* dismissButton; | |
msarda
2017/04/28 16:08:16
Maybe add a comment saying that this button is hid
jlebel
2017/05/03 12:41:14
Done.
| |
39 // If set to YES, ShowSigninCommand is sent when primary or secondary buttons | 40 // If set to YES, ShowSigninCommand is sent when primary or secondary buttons |
40 // are tapped. | 41 // are tapped. |
41 @property(nonatomic, getter=doesSendChromeCommand) BOOL sendChromeCommand; | 42 @property(nonatomic, getter=doesSendChromeCommand) BOOL sendChromeCommand; |
42 | 43 |
43 // Horizontal padding used for |textLabel|, |primaryButton| and | 44 // Horizontal padding used for |textLabel|, |primaryButton| and |
44 // |secondaryButton|. Used to compute the preferred max layout width of | 45 // |secondaryButton|. Used to compute the preferred max layout width of |
45 // |textLabel|. | 46 // |textLabel|. |
46 @property(nonatomic, readonly) CGFloat horizontalPadding; | 47 @property(nonatomic, readonly) CGFloat horizontalPadding; |
47 | 48 |
48 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | 49 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
49 | 50 |
50 // Sets the image in |imageView|. This method will add a circular background | 51 // Sets the image in |imageView|. This method will add a circular background |
51 // using CircularImageFromImage() (so if the image is not squared, it will be | 52 // using CircularImageFromImage() (so if the image is not squared, it will be |
52 // cropped first). Must only be called in the "Warm State" mode. | 53 // cropped first). Must only be called in the "Warm State" mode. |
53 - (void)setProfileImage:(UIImage*)image; | 54 - (void)setProfileImage:(UIImage*)image; |
54 | 55 |
55 @end | 56 @end |
56 | 57 |
57 #endif // IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGN_PROMO_VIEW_H_ | 58 #endif // IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGN_PROMO_VIEW_H_ |
OLD | NEW |