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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // Sets the displayed email for the next login attempt with |CompleteLogin|. | 86 // Sets the displayed email for the next login attempt with |CompleteLogin|. |
87 // If it succeeds, user's displayed email value will be updated to |email|. | 87 // If it succeeds, user's displayed email value will be updated to |email|. |
88 virtual void SetDisplayEmail(const std::string& email) = 0; | 88 virtual void SetDisplayEmail(const std::string& email) = 0; |
89 | 89 |
90 // Returns name of the currently connected network, for error message, | 90 // Returns name of the currently connected network, for error message, |
91 virtual base::string16 GetConnectedNetworkName() = 0; | 91 virtual base::string16 GetConnectedNetworkName() = 0; |
92 | 92 |
93 // Restarts the public-session auto-login timer if it is running. | 93 // Restarts the public-session auto-login timer if it is running. |
94 virtual void ResetPublicSessionAutoLoginTimer() = 0; | 94 virtual void ResetPublicSessionAutoLoginTimer() = 0; |
95 | 95 |
| 96 // Returns true if user is allowed to log in by domain policy. |
| 97 virtual bool IsUserWhitelisted(const std::string& user_id) = 0; |
| 98 |
96 protected: | 99 protected: |
97 virtual ~Delegate(); | 100 virtual ~Delegate(); |
98 }; | 101 }; |
99 | 102 |
100 // |background_bounds| determines the bounds of login UI background. | 103 // |background_bounds| determines the bounds of login UI background. |
101 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); | 104 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); |
102 virtual ~LoginDisplay(); | 105 virtual ~LoginDisplay(); |
103 | 106 |
104 // Clears and enables fields on user pod or GAIA frame. | 107 // Clears and enables fields on user pod or GAIA frame. |
105 virtual void ClearAndEnablePassword() = 0; | 108 virtual void ClearAndEnablePassword() = 0; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // in redesigned login stack. | 177 // in redesigned login stack. |
175 // Login stack (and this object) will be recreated for next user sign in. | 178 // Login stack (and this object) will be recreated for next user sign in. |
176 bool is_signin_completed_; | 179 bool is_signin_completed_; |
177 | 180 |
178 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 181 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
179 }; | 182 }; |
180 | 183 |
181 } // namespace chromeos | 184 } // namespace chromeos |
182 | 185 |
183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 186 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
OLD | NEW |