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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 ENTERPRISE_ENROLLMENT_BACK = 13, | 42 ENTERPRISE_ENROLLMENT_BACK = 13, |
43 RESET_CANCELED = 14, | 43 RESET_CANCELED = 14, |
44 KIOSK_AUTOLAUNCH_CANCELED = 15, | 44 KIOSK_AUTOLAUNCH_CANCELED = 15, |
45 KIOSK_AUTOLAUNCH_CONFIRMED = 16, | 45 KIOSK_AUTOLAUNCH_CONFIRMED = 16, |
46 KIOSK_ENABLE_COMPLETED = 17, | 46 KIOSK_ENABLE_COMPLETED = 17, |
47 TERMS_OF_SERVICE_DECLINED = 18, | 47 TERMS_OF_SERVICE_DECLINED = 18, |
48 TERMS_OF_SERVICE_ACCEPTED = 19, | 48 TERMS_OF_SERVICE_ACCEPTED = 19, |
49 WRONG_HWID_WARNING_SKIPPED = 20, | 49 WRONG_HWID_WARNING_SKIPPED = 20, |
50 CONTROLLER_PAIRING_FINISHED = 21, | 50 CONTROLLER_PAIRING_FINISHED = 21, |
51 HOST_PAIRING_FINISHED = 22, | 51 HOST_PAIRING_FINISHED = 22, |
| 52 DEVICE_NOT_DISABLED = 23, |
52 EXIT_CODES_COUNT // not a real code, must be the last | 53 EXIT_CODES_COUNT // not a real code, must be the last |
53 }; | 54 }; |
54 | 55 |
55 // Method called by a screen when user's done with it. | 56 // Method called by a screen when user's done with it. |
56 virtual void OnExit(ExitCodes exit_code) = 0; | 57 virtual void OnExit(ExitCodes exit_code) = 0; |
57 | 58 |
58 // Forces current screen showing. | 59 // Forces current screen showing. |
59 virtual void ShowCurrentScreen() = 0; | 60 virtual void ShowCurrentScreen() = 0; |
60 | 61 |
61 // 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 |
(...skipping 17 matching lines...) Expand all Loading... |
79 virtual void ShowErrorScreen() = 0; | 80 virtual void ShowErrorScreen() = 0; |
80 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; | 81 virtual void HideErrorScreen(BaseScreen* parent_screen) = 0; |
81 | 82 |
82 protected: | 83 protected: |
83 virtual ~ScreenObserver() {} | 84 virtual ~ScreenObserver() {} |
84 }; | 85 }; |
85 | 86 |
86 } // namespace chromeos | 87 } // namespace chromeos |
87 | 88 |
88 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ | 89 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ |
OLD | NEW |