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 // Set remora configuration from shark. | |
63 virtual void SetHostConfiguration() = 0; | |
64 virtual void ConfigureHost(bool accepted_eula, | |
65 const std::string& lang, | |
66 const std::string& timezone, | |
67 bool send_reports, | |
68 const std::string& keyboard_layout) = 0; | |
69 | |
70 virtual ErrorScreen* GetErrorScreen() = 0; | 62 virtual ErrorScreen* GetErrorScreen() = 0; |
71 virtual void ShowErrorScreen() = 0; | 63 virtual void ShowErrorScreen() = 0; |
72 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; | 64 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; |
73 | 65 |
74 protected: | 66 protected: |
75 virtual ~ScreenObserver() {} | 67 virtual ~ScreenObserver() {} |
76 }; | 68 }; |
77 | 69 |
78 } // namespace chromeos | 70 } // namespace chromeos |
79 | 71 |
80 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
OLD | NEW |