| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Sign out the currently signed in user. | 53 // Sign out the currently signed in user. |
| 54 // Used when the lock screen is being displayed. | 54 // Used when the lock screen is being displayed. |
| 55 virtual void Signout() = 0; | 55 virtual void Signout() = 0; |
| 56 | 56 |
| 57 // Called when existing user pod is selected in the UI. | 57 // Called when existing user pod is selected in the UI. |
| 58 virtual void OnUserSelected(const std::string& username) = 0; | 58 virtual void OnUserSelected(const std::string& username) = 0; |
| 59 | 59 |
| 60 // Called when the user requests enterprise enrollment. | 60 // Called when the user requests enterprise enrollment. |
| 61 virtual void OnStartEnterpriseEnrollment() = 0; | 61 virtual void OnStartEnterpriseEnrollment() = 0; |
| 62 | 62 |
| 63 // Called when the user requests device reset. |
| 64 virtual void OnStartDeviceReset() = 0; |
| 65 |
| 63 protected: | 66 protected: |
| 64 virtual ~Delegate(); | 67 virtual ~Delegate(); |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 // |background_bounds| determines the bounds of login UI background. | 70 // |background_bounds| determines the bounds of login UI background. |
| 68 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); | 71 LoginDisplay(Delegate* delegate, const gfx::Rect& background_bounds); |
| 69 virtual ~LoginDisplay(); | 72 virtual ~LoginDisplay(); |
| 70 | 73 |
| 71 // Initializes login UI with the user pods based on list of known users and | 74 // Initializes login UI with the user pods based on list of known users and |
| 72 // guest, new user pods if those are enabled. | 75 // guest, new user pods if those are enabled. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 132 |
| 130 // Bounds of the login UI background. | 133 // Bounds of the login UI background. |
| 131 gfx::Rect background_bounds_; | 134 gfx::Rect background_bounds_; |
| 132 | 135 |
| 133 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 136 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 } // namespace chromeos | 139 } // namespace chromeos |
| 137 | 140 |
| 138 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 141 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
| OLD | NEW |