| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CHROME_SIGNIN_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_AUTHENTICATION_CHROME_SIGNIN_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_AUTHENTICATION_CHROME_SIGNIN_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_AUTHENTICATION_CHROME_SIGNIN_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include "components/signin/core/browser/signin_metrics.h" | 10 #include "components/signin/core/browser/signin_metrics.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // This marks the end of the sign-in flow. | 53 // This marks the end of the sign-in flow. |
| 54 - (void)didAcceptSignIn:(ChromeSigninViewController*)controller | 54 - (void)didAcceptSignIn:(ChromeSigninViewController*)controller |
| 55 executeCommand:(GenericChromeCommand*)command; | 55 executeCommand:(GenericChromeCommand*)command; |
| 56 | 56 |
| 57 @end | 57 @end |
| 58 | 58 |
| 59 // ChromeSigninViewController is a view controller that handles all the | 59 // ChromeSigninViewController is a view controller that handles all the |
| 60 // sign-in UI flow. | 60 // sign-in UI flow. |
| 61 @interface ChromeSigninViewController : UIViewController | 61 @interface ChromeSigninViewController : UIViewController |
| 62 | 62 |
| 63 @property(nonatomic, assign) id<ChromeSigninViewControllerDelegate> delegate; | 63 @property(nonatomic, weak) id<ChromeSigninViewControllerDelegate> delegate; |
| 64 | 64 |
| 65 // Data clearing policy to use during the authentication. | 65 // Data clearing policy to use during the authentication. |
| 66 // It is valid to set this in the |willStartSignIn:| method of the delegate. | 66 // It is valid to set this in the |willStartSignIn:| method of the delegate. |
| 67 @property(nonatomic, assign) ShouldClearData shouldClearData; | 67 @property(nonatomic, assign) ShouldClearData shouldClearData; |
| 68 | 68 |
| 69 // Designated initializer. | 69 // Designated initializer. |
| 70 // * |browserState| is the current browser state. | 70 // * |browserState| is the current browser state. |
| 71 // * |isPresentedOnSettings| indicates whether the settings view controller is | 71 // * |isPresentedOnSettings| indicates whether the settings view controller is |
| 72 // part of the presented view controllers stack. | 72 // part of the presented view controllers stack. |
| 73 // * |accessPoint| represents the access point that initiated the sign-in. | 73 // * |accessPoint| represents the access point that initiated the sign-in. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 98 | 98 |
| 99 // Secondary button title used to skip the sign-in. | 99 // Secondary button title used to skip the sign-in. |
| 100 @property(nonatomic, readonly) NSString* skipSigninButtonTitle; | 100 @property(nonatomic, readonly) NSString* skipSigninButtonTitle; |
| 101 | 101 |
| 102 @property(nonatomic, readonly) UIButton* primaryButton; | 102 @property(nonatomic, readonly) UIButton* primaryButton; |
| 103 @property(nonatomic, readonly) UIButton* secondaryButton; | 103 @property(nonatomic, readonly) UIButton* secondaryButton; |
| 104 | 104 |
| 105 @end | 105 @end |
| 106 | 106 |
| 107 #endif // IOS_CHROME_BROWSER_UI_AUTHENTICATION_CHROME_SIGNIN_VIEW_CONTROLLER_H_ | 107 #endif // IOS_CHROME_BROWSER_UI_AUTHENTICATION_CHROME_SIGNIN_VIEW_CONTROLLER_H_ |
| OLD | NEW |