| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_UI_WEBUI_CHROMEOS_LOGIN_OOBE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 // TODO(jdufault): Rename to LoginScreen or similar since this is not directly |
| 13 // tied to Oobe. See crbug.com/678740. |
| 14 |
| 12 // Different screens in the Oobe. If you update this enum, *make sure* to | 15 // Different screens in the Oobe. If you update this enum, *make sure* to |
| 13 // update kScreenNames in the cc file as well. | 16 // update kScreenNames in the cc file as well. |
| 14 enum class OobeScreen : unsigned int { | 17 enum class OobeScreen : unsigned int { |
| 15 SCREEN_OOBE_HID_DETECTION = 0, | 18 SCREEN_OOBE_HID_DETECTION = 0, |
| 16 SCREEN_OOBE_NETWORK, | 19 SCREEN_OOBE_NETWORK, |
| 17 SCREEN_OOBE_EULA, | 20 SCREEN_OOBE_EULA, |
| 18 SCREEN_OOBE_UPDATE, | 21 SCREEN_OOBE_UPDATE, |
| 19 SCREEN_OOBE_ENABLE_DEBUGGING, | 22 SCREEN_OOBE_ENABLE_DEBUGGING, |
| 20 SCREEN_OOBE_ENROLLMENT, | 23 SCREEN_OOBE_ENROLLMENT, |
| 21 SCREEN_OOBE_RESET, | 24 SCREEN_OOBE_RESET, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 SCREEN_ARC_TERMS_OF_SERVICE, | 35 SCREEN_ARC_TERMS_OF_SERVICE, |
| 33 SCREEN_WRONG_HWID, | 36 SCREEN_WRONG_HWID, |
| 34 SCREEN_AUTO_ENROLLMENT_CHECK, | 37 SCREEN_AUTO_ENROLLMENT_CHECK, |
| 35 SCREEN_APP_LAUNCH_SPLASH, | 38 SCREEN_APP_LAUNCH_SPLASH, |
| 36 SCREEN_CONFIRM_PASSWORD, | 39 SCREEN_CONFIRM_PASSWORD, |
| 37 SCREEN_FATAL_ERROR, | 40 SCREEN_FATAL_ERROR, |
| 38 SCREEN_OOBE_CONTROLLER_PAIRING, | 41 SCREEN_OOBE_CONTROLLER_PAIRING, |
| 39 SCREEN_OOBE_HOST_PAIRING, | 42 SCREEN_OOBE_HOST_PAIRING, |
| 40 SCREEN_DEVICE_DISABLED, | 43 SCREEN_DEVICE_DISABLED, |
| 41 SCREEN_UNRECOVERABLE_CRYPTOHOME_ERROR, | 44 SCREEN_UNRECOVERABLE_CRYPTOHOME_ERROR, |
| 45 SCREEN_USER_SELECTION, |
| 46 |
| 47 // Special "first screen" that initiates login flow. |
| 48 SCREEN_SPECIAL_LOGIN, |
| 49 // Special "first screen" that initiates full OOBE flow. |
| 50 SCREEN_SPECIAL_OOBE, |
| 51 // Special test value that commands not to create any window yet. |
| 52 SCREEN_TEST_NO_WINDOW, |
| 53 |
| 42 SCREEN_UNKNOWN // This must always be the last element. | 54 SCREEN_UNKNOWN // This must always be the last element. |
| 43 }; | 55 }; |
| 44 | 56 |
| 45 // Returns the JS name for the given screen. | 57 // Returns the JS name for the given screen. |
| 46 std::string GetOobeScreenName(OobeScreen screen); | 58 std::string GetOobeScreenName(OobeScreen screen); |
| 47 | 59 |
| 48 // Converts the JS name for the given sreen into a Screen instance. | 60 // Converts the JS name for the given sreen into a Screen instance. |
| 49 OobeScreen GetOobeScreenFromName(const std::string& name); | 61 OobeScreen GetOobeScreenFromName(const std::string& name); |
| 50 | 62 |
| 51 } // namespace chromeos | 63 } // namespace chromeos |
| 52 | 64 |
| 53 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_SCREEN_H_ | 65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_SCREEN_H_ |
| OLD | NEW |