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 27 matching lines...) Expand all Loading... |
38 ENTERPRISE_ENROLLMENT_COMPLETED, | 38 ENTERPRISE_ENROLLMENT_COMPLETED, |
39 ENTERPRISE_AUTO_MAGIC_ENROLLMENT_COMPLETED, | 39 ENTERPRISE_AUTO_MAGIC_ENROLLMENT_COMPLETED, |
40 ENTERPRISE_ENROLLMENT_BACK, | 40 ENTERPRISE_ENROLLMENT_BACK, |
41 RESET_CANCELED, | 41 RESET_CANCELED, |
42 KIOSK_AUTOLAUNCH_CANCELED, | 42 KIOSK_AUTOLAUNCH_CANCELED, |
43 KIOSK_AUTOLAUNCH_CONFIRMED, | 43 KIOSK_AUTOLAUNCH_CONFIRMED, |
44 KIOSK_ENABLE_COMPLETED, | 44 KIOSK_ENABLE_COMPLETED, |
45 TERMS_OF_SERVICE_DECLINED, | 45 TERMS_OF_SERVICE_DECLINED, |
46 TERMS_OF_SERVICE_ACCEPTED, | 46 TERMS_OF_SERVICE_ACCEPTED, |
47 WRONG_HWID_WARNING_SKIPPED, | 47 WRONG_HWID_WARNING_SKIPPED, |
| 48 CONTROLLER_PAIRING_FINISHED, |
48 EXIT_CODES_COUNT // not a real code, must be the last | 49 EXIT_CODES_COUNT // not a real code, must be the last |
49 }; | 50 }; |
50 | 51 |
51 // Method called by a screen when user's done with it. | 52 // Method called by a screen when user's done with it. |
52 virtual void OnExit(ExitCodes exit_code) = 0; | 53 virtual void OnExit(ExitCodes exit_code) = 0; |
53 | 54 |
54 // Forces current screen showing. | 55 // Forces current screen showing. |
55 virtual void ShowCurrentScreen() = 0; | 56 virtual void ShowCurrentScreen() = 0; |
56 | 57 |
57 // Notify about new user names and password. It is used to autologin | 58 // Notify about new user names and password. It is used to autologin |
58 // just created user without asking the same info once again. | 59 // just created user without asking the same info once again. |
59 virtual void OnSetUserNamePassword(const std::string& username, | 60 virtual void OnSetUserNamePassword(const std::string& username, |
60 const std::string& password) = 0; | 61 const std::string& password) = 0; |
61 | 62 |
62 // Whether usage statistics reporting is enabled on EULA screen. | 63 // Whether usage statistics reporting is enabled on EULA screen. |
63 virtual void SetUsageStatisticsReporting(bool val) = 0; | 64 virtual void SetUsageStatisticsReporting(bool val) = 0; |
64 virtual bool GetUsageStatisticsReporting() const = 0; | 65 virtual bool GetUsageStatisticsReporting() const = 0; |
65 | 66 |
66 virtual ErrorScreen* GetErrorScreen() = 0; | 67 virtual ErrorScreen* GetErrorScreen() = 0; |
67 virtual void ShowErrorScreen() = 0; | 68 virtual void ShowErrorScreen() = 0; |
68 virtual void HideErrorScreen(WizardScreen* parent_screen) = 0; | 69 virtual void HideErrorScreen(WizardScreen* parent_screen) = 0; |
69 | 70 |
70 protected: | 71 protected: |
71 virtual ~ScreenObserver() {} | 72 virtual ~ScreenObserver() {} |
72 }; | 73 }; |
73 | 74 |
74 } // namespace chromeos | 75 } // namespace chromeos |
75 | 76 |
76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
OLD | NEW |