| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 62 // Notify about new user names and password. It is used to autologin |
| 63 // just created user without asking the same info once again. | 63 // just created user without asking the same info once again. |
| 64 virtual void OnSetUserNamePassword(const std::string& username, | 64 virtual void OnSetUserNamePassword(const std::string& username, |
| 65 const std::string& password) = 0; | 65 const std::string& password) = 0; |
| 66 | 66 |
| 67 // Whether usage statistics reporting is enabled on EULA screen. | |
| 68 virtual void SetUsageStatisticsReporting(bool val) = 0; | |
| 69 virtual bool GetUsageStatisticsReporting() const = 0; | |
| 70 | |
| 71 // Set remora configuration from shark. | 67 // Set remora configuration from shark. |
| 72 virtual void SetHostConfiguration() = 0; | 68 virtual void SetHostConfiguration() = 0; |
| 73 virtual void ConfigureHost(bool accepted_eula, | 69 virtual void ConfigureHost(bool accepted_eula, |
| 74 const std::string& lang, | 70 const std::string& lang, |
| 75 const std::string& timezone, | 71 const std::string& timezone, |
| 76 bool send_reports, | 72 bool send_reports, |
| 77 const std::string& keyboard_layout) = 0; | 73 const std::string& keyboard_layout) = 0; |
| 78 | 74 |
| 79 virtual ErrorScreen* GetErrorScreen() = 0; | 75 virtual ErrorScreen* GetErrorScreen() = 0; |
| 80 virtual void ShowErrorScreen() = 0; | 76 virtual void ShowErrorScreen() = 0; |
| 81 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; | 77 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; |
| 82 | 78 |
| 83 protected: | 79 protected: |
| 84 virtual ~ScreenObserver() {} | 80 virtual ~ScreenObserver() {} |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 } // namespace chromeos | 83 } // namespace chromeos |
| 88 | 84 |
| 89 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ | 85 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
| OLD | NEW |