OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_EXIT_CODE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 // Each login screen or a view shown within login wizard view is itself a | 12 // Each login screen or a view shown within login wizard view is itself a |
13 // state. Upon exit each view returns one of the results by calling | 13 // state. Upon exit each view returns one of the results by calling |
14 // the BaseScreenDelegate::OnExit() method. Depending on the result and the | 14 // the BaseScreenDelegate::OnExit() method. Depending on the result and the |
15 // current view or state the login wizard decides what is the next view to show. | 15 // current view or state the login wizard decides what is the next view to show. |
16 // | 16 // |
17 // There must be an exit code for each way to exit the screen for each screen. | 17 // There must be an exit code for each way to exit the screen for each screen. |
18 // | 18 // |
19 // Numeric ids are provided to facilitate interpretation of log files only, | 19 // Numeric ids are provided to facilitate interpretation of log files only, |
20 // they are subject to change without notice. | 20 // they are subject to change without notice. |
21 enum class ScreenExitCode { | 21 enum class ScreenExitCode { |
22 // "Continue" was pressed on network screen and network is online. | 22 // "Continue" was pressed on network screen and network is online. |
23 NETWORK_CONNECTED = 0, | 23 NETWORK_CONNECTED = 0, |
24 HID_DETECTION_COMPLETED = 1, | 24 HID_DETECTION_COMPLETED = 1, |
25 // Connection failed while trying to load a WebPageScreen. | 25 // Connection failed while trying to load a WebPageScreen. |
26 CONNECTION_FAILED = 2, | 26 CONNECTION_FAILED = 2, |
27 UPDATE_INSTALLED = 3, | 27 UPDATE_INSTALLED = 3, |
28 // Despite the name, this exit code means EITHER that there was no update, | |
29 // OR that there was an update, but that it was not a "critical" update. | |
30 // "Critical" updates are those which require the device to reboot. | |
xiyuan
2017/05/15 17:24:22
nit: "Critical" updates are those that *have a dea
kumarniranjan
2017/05/15 22:08:21
Done.
| |
28 UPDATE_NOUPDATE = 4, | 31 UPDATE_NOUPDATE = 4, |
29 UPDATE_ERROR_CHECKING_FOR_UPDATE = 5, | 32 UPDATE_ERROR_CHECKING_FOR_UPDATE = 5, |
30 UPDATE_ERROR_UPDATING = 6, | 33 UPDATE_ERROR_UPDATING = 6, |
31 USER_IMAGE_SELECTED = 7, | 34 USER_IMAGE_SELECTED = 7, |
32 EULA_ACCEPTED = 8, | 35 EULA_ACCEPTED = 8, |
33 EULA_BACK = 9, | 36 EULA_BACK = 9, |
34 ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED = 10, | 37 ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED = 10, |
35 ENTERPRISE_ENROLLMENT_COMPLETED = 11, | 38 ENTERPRISE_ENROLLMENT_COMPLETED = 11, |
36 ENTERPRISE_ENROLLMENT_BACK = 12, | 39 ENTERPRISE_ENROLLMENT_BACK = 12, |
37 RESET_CANCELED = 13, | 40 RESET_CANCELED = 13, |
(...skipping 11 matching lines...) Expand all Loading... | |
49 ENCRYPTION_MIGRATION_FINISHED = 25, | 52 ENCRYPTION_MIGRATION_FINISHED = 25, |
50 ENCRYPTION_MIGRATION_SKIPPED = 26, | 53 ENCRYPTION_MIGRATION_SKIPPED = 26, |
51 EXIT_CODES_COUNT // not a real code, must be the last | 54 EXIT_CODES_COUNT // not a real code, must be the last |
52 }; | 55 }; |
53 | 56 |
54 std::string ExitCodeToString(ScreenExitCode code); | 57 std::string ExitCodeToString(ScreenExitCode code); |
55 | 58 |
56 } // namespace chromeos | 59 } // namespace chromeos |
57 | 60 |
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ | 61 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_ |
OLD | NEW |