| 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_SCREENS_SCREEN_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 DEVICE_NOT_DISABLED = 23, | 52 DEVICE_NOT_DISABLED = 23, |
| 53 EXIT_CODES_COUNT // not a real code, must be the last | 53 EXIT_CODES_COUNT // not a real code, must be the last |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 // Method called by a screen when user's done with it. | 56 // Method called by a screen when user's done with it. |
| 57 virtual void OnExit(ExitCodes exit_code) = 0; | 57 virtual void OnExit(ExitCodes exit_code) = 0; |
| 58 | 58 |
| 59 // Forces current screen showing. | 59 // Forces current screen showing. |
| 60 virtual void ShowCurrentScreen() = 0; | 60 virtual void ShowCurrentScreen() = 0; |
| 61 | 61 |
| 62 // Notify about new user names and password. It is used to autologin | |
| 63 // just created user without asking the same info once again. | |
| 64 virtual void OnSetUserNamePassword(const std::string& username, | |
| 65 const std::string& password) = 0; | |
| 66 | |
| 67 // Set remora configuration from shark. | 62 // Set remora configuration from shark. |
| 68 virtual void SetHostConfiguration() = 0; | 63 virtual void SetHostConfiguration() = 0; |
| 69 virtual void ConfigureHost(bool accepted_eula, | 64 virtual void ConfigureHost(bool accepted_eula, |
| 70 const std::string& lang, | 65 const std::string& lang, |
| 71 const std::string& timezone, | 66 const std::string& timezone, |
| 72 bool send_reports, | 67 bool send_reports, |
| 73 const std::string& keyboard_layout) = 0; | 68 const std::string& keyboard_layout) = 0; |
| 74 | 69 |
| 75 virtual ErrorScreen* GetErrorScreen() = 0; | 70 virtual ErrorScreen* GetErrorScreen() = 0; |
| 76 virtual void ShowErrorScreen() = 0; | 71 virtual void ShowErrorScreen() = 0; |
| 77 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; | 72 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; |
| 78 | 73 |
| 79 protected: | 74 protected: |
| 80 virtual ~ScreenObserver() {} | 75 virtual ~ScreenObserver() {} |
| 81 }; | 76 }; |
| 82 | 77 |
| 83 } // namespace chromeos | 78 } // namespace chromeos |
| 84 | 79 |
| 85 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ | 80 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
| OLD | NEW |