| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_SCREEN_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_SCREEN_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 // Different screens in the Oobe. If you update this enum, *make sure* to | |
| 13 // update kScreenNames in the cc file as well. | |
| 14 enum class OobeScreen : unsigned int { | |
| 15 SCREEN_OOBE_HID_DETECTION = 0, | |
| 16 SCREEN_OOBE_NETWORK, | |
| 17 SCREEN_OOBE_EULA, | |
| 18 SCREEN_OOBE_UPDATE, | |
| 19 SCREEN_OOBE_ENABLE_DEBUGGING, | |
| 20 SCREEN_OOBE_ENROLLMENT, | |
| 21 SCREEN_OOBE_RESET, | |
| 22 SCREEN_GAIA_SIGNIN, | |
| 23 SCREEN_ACCOUNT_PICKER, | |
| 24 SCREEN_KIOSK_AUTOLAUNCH, | |
| 25 SCREEN_KIOSK_ENABLE, | |
| 26 SCREEN_ERROR_MESSAGE, | |
| 27 SCREEN_USER_IMAGE_PICKER, | |
| 28 SCREEN_TPM_ERROR, | |
| 29 SCREEN_PASSWORD_CHANGED, | |
| 30 SCREEN_CREATE_SUPERVISED_USER_FLOW, | |
| 31 SCREEN_TERMS_OF_SERVICE, | |
| 32 SCREEN_ARC_TERMS_OF_SERVICE, | |
| 33 SCREEN_WRONG_HWID, | |
| 34 SCREEN_AUTO_ENROLLMENT_CHECK, | |
| 35 SCREEN_APP_LAUNCH_SPLASH, | |
| 36 SCREEN_CONFIRM_PASSWORD, | |
| 37 SCREEN_FATAL_ERROR, | |
| 38 SCREEN_OOBE_CONTROLLER_PAIRING, | |
| 39 SCREEN_OOBE_HOST_PAIRING, | |
| 40 SCREEN_DEVICE_DISABLED, | |
| 41 SCREEN_UNRECOVERABLE_CRYPTOHOME_ERROR, | |
| 42 SCREEN_UNKNOWN // This must always be the last element. | |
| 43 }; | |
| 44 | |
| 45 // Returns the JS name for the given screen. | |
| 46 std::string GetOobeScreenName(OobeScreen screen); | |
| 47 | |
| 48 // Converts the JS name for the given sreen into a Screen instance. | |
| 49 OobeScreen GetOobeScreenFromName(const std::string& name); | |
| 50 | |
| 51 } // namespace chromeos | |
| 52 | |
| 53 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_SCREEN_H_ | |
| OLD | NEW |