OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Used when the lock screen is being displayed. | 59 // Used when the lock screen is being displayed. |
60 virtual void Signout() = 0; | 60 virtual void Signout() = 0; |
61 | 61 |
62 // Complete sign process with specified |user_context|. | 62 // Complete sign process with specified |user_context|. |
63 // Used for new users authenticated through an extension. | 63 // Used for new users authenticated through an extension. |
64 virtual void CompleteLogin(const UserContext& user_context) = 0; | 64 virtual void CompleteLogin(const UserContext& user_context) = 0; |
65 | 65 |
66 // Notify the delegate when the sign-in UI is finished loading. | 66 // Notify the delegate when the sign-in UI is finished loading. |
67 virtual void OnSigninScreenReady() = 0; | 67 virtual void OnSigninScreenReady() = 0; |
68 | 68 |
| 69 // Notify the delegate when the GAIA UI is finished loading. |
| 70 virtual void OnGaiaScreenReady() = 0; |
| 71 |
69 // Called when the user requests enterprise enrollment. | 72 // Called when the user requests enterprise enrollment. |
70 virtual void OnStartEnterpriseEnrollment() = 0; | 73 virtual void OnStartEnterpriseEnrollment() = 0; |
71 | 74 |
72 // Called when the user requests enable developer features screen. | 75 // Called when the user requests enable developer features screen. |
73 virtual void OnStartEnableDebuggingScreen() = 0; | 76 virtual void OnStartEnableDebuggingScreen() = 0; |
74 | 77 |
75 // Called when the user requests kiosk enable screen. | 78 // Called when the user requests kiosk enable screen. |
76 virtual void OnStartKioskEnableScreen() = 0; | 79 virtual void OnStartKioskEnableScreen() = 0; |
77 | 80 |
78 // Called when the owner permission for kiosk app auto launch is requested. | 81 // Called when the owner permission for kiosk app auto launch is requested. |
79 virtual void OnStartKioskAutolaunchScreen() = 0; | 82 virtual void OnStartKioskAutolaunchScreen() = 0; |
80 | 83 |
81 // Shows wrong HWID screen. | 84 // Shows wrong HWID screen. |
82 virtual void ShowWrongHWIDScreen() = 0; | 85 virtual void ShowWrongHWIDScreen() = 0; |
83 | 86 |
84 // Sets the displayed email for the next login attempt with |CompleteLogin|. | 87 // Sets the displayed email for the next login attempt with |CompleteLogin|. |
85 // If it succeeds, user's displayed email value will be updated to |email|. | 88 // If it succeeds, user's displayed email value will be updated to |email|. |
86 virtual void SetDisplayEmail(const std::string& email) = 0; | 89 virtual void SetDisplayEmail(const std::string& email) = 0; |
87 | 90 |
88 // Returns name of the currently connected network, for error message, | 91 // Returns name of the currently connected network, for error message, |
89 virtual base::string16 GetConnectedNetworkName() = 0; | 92 virtual base::string16 GetConnectedNetworkName() = 0; |
90 | 93 |
91 // Restarts the public-session auto-login timer if it is running. | 94 // Restarts the auto-login timer if it is running. |
92 virtual void ResetPublicSessionAutoLoginTimer() = 0; | 95 virtual void ResetAutoLoginTimer() = 0; |
93 | 96 |
94 // Returns true if user is allowed to log in by domain policy. | 97 // Returns true if user is allowed to log in by domain policy. |
95 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; | 98 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; |
96 | 99 |
97 protected: | 100 protected: |
98 virtual ~Delegate(); | 101 virtual ~Delegate(); |
99 }; | 102 }; |
100 | 103 |
101 // |background_bounds| determines the bounds of login UI background. | 104 // |background_bounds| determines the bounds of login UI background. |
102 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); | 105 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // in redesigned login stack. | 178 // in redesigned login stack. |
176 // Login stack (and this object) will be recreated for next user sign in. | 179 // Login stack (and this object) will be recreated for next user sign in. |
177 bool is_signin_completed_; | 180 bool is_signin_completed_; |
178 | 181 |
179 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 182 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
180 }; | 183 }; |
181 | 184 |
182 } // namespace chromeos | 185 } // namespace chromeos |
183 | 186 |
184 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 187 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
OLD | NEW |