| 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_SCREEN_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 UPDATE_NOUPDATE, | 27 UPDATE_NOUPDATE, |
| 28 UPDATE_ERROR_CHECKING_FOR_UPDATE, | 28 UPDATE_ERROR_CHECKING_FOR_UPDATE, |
| 29 UPDATE_ERROR_UPDATING, | 29 UPDATE_ERROR_UPDATING, |
| 30 USER_IMAGE_SELECTED, | 30 USER_IMAGE_SELECTED, |
| 31 EULA_ACCEPTED, | 31 EULA_ACCEPTED, |
| 32 EULA_BACK, | 32 EULA_BACK, |
| 33 REGISTRATION_SUCCESS, | 33 REGISTRATION_SUCCESS, |
| 34 REGISTRATION_SKIPPED, | 34 REGISTRATION_SKIPPED, |
| 35 ENTERPRISE_ENROLLMENT_COMPLETED, | 35 ENTERPRISE_ENROLLMENT_COMPLETED, |
| 36 ENTERPRISE_AUTO_MAGIC_ENROLLMENT_COMPLETED, | 36 ENTERPRISE_AUTO_MAGIC_ENROLLMENT_COMPLETED, |
| 37 RESET_CANCELED, |
| 37 EXIT_CODES_COUNT // not a real code, must be the last | 38 EXIT_CODES_COUNT // not a real code, must be the last |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 // Method called by a screen when user's done with it. | 41 // Method called by a screen when user's done with it. |
| 41 virtual void OnExit(ExitCodes exit_code) = 0; | 42 virtual void OnExit(ExitCodes exit_code) = 0; |
| 42 | 43 |
| 43 // Forces current screen showing. | 44 // Forces current screen showing. |
| 44 virtual void ShowCurrentScreen() = 0; | 45 virtual void ShowCurrentScreen() = 0; |
| 45 | 46 |
| 46 // Notify about new user names and password. It is used to autologin | 47 // Notify about new user names and password. It is used to autologin |
| 47 // just created user without asking the same info once again. | 48 // just created user without asking the same info once again. |
| 48 virtual void OnSetUserNamePassword(const std::string& username, | 49 virtual void OnSetUserNamePassword(const std::string& username, |
| 49 const std::string& password) = 0; | 50 const std::string& password) = 0; |
| 50 | 51 |
| 51 // Set/get usage statistics reporting checkbox status on EULA screen. | 52 // Set/get usage statistics reporting checkbox status on EULA screen. |
| 52 virtual void SetUsageStatisticsReporting(bool val) = 0; | 53 virtual void SetUsageStatisticsReporting(bool val) = 0; |
| 53 virtual bool GetUsageStatisticsReporting() const = 0; | 54 virtual bool GetUsageStatisticsReporting() const = 0; |
| 54 | 55 |
| 55 protected: | 56 protected: |
| 56 virtual ~ScreenObserver() {} | 57 virtual ~ScreenObserver() {} |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace chromeos | 60 } // namespace chromeos |
| 60 | 61 |
| 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_OBSERVER_H_ |
| OLD | NEW |