| Index: chrome/browser/chromeos/login/screens/screen_exit_code.h
|
| diff --git a/chrome/browser/chromeos/login/screens/screen_exit_code.h b/chrome/browser/chromeos/login/screens/screen_exit_code.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e81965aef12e2122c8e9d9e99099016a594cfd7a
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/login/screens/screen_exit_code.h
|
| @@ -0,0 +1,56 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
|
| +
|
| +#include <string>
|
| +
|
| +namespace chromeos {
|
| +
|
| +// Each login screen or a view shown within login wizard view is itself a
|
| +// state. Upon exit each view returns one of the results by calling
|
| +// the BaseScreenDelegate::OnExit() method. Depending on the result and the
|
| +// current view or state the login wizard decides what is the next view to show.
|
| +//
|
| +// There must be an exit code for each way to exit the screen for each screen.
|
| +//
|
| +// Numeric ids are provided to facilitate interpretation of log files only,
|
| +// they are subject to change without notice.
|
| +enum class ScreenExitCode {
|
| + // "Continue" was pressed on network screen and network is online.
|
| + NETWORK_CONNECTED = 0,
|
| + HID_DETECTION_COMPLETED = 1,
|
| + // Connection failed while trying to load a WebPageScreen.
|
| + CONNECTION_FAILED = 2,
|
| + UPDATE_INSTALLED = 3,
|
| + UPDATE_NOUPDATE = 4,
|
| + UPDATE_ERROR_CHECKING_FOR_UPDATE = 5,
|
| + UPDATE_ERROR_UPDATING = 6,
|
| + USER_IMAGE_SELECTED = 7,
|
| + EULA_ACCEPTED = 8,
|
| + EULA_BACK = 9,
|
| + ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED = 10,
|
| + ENTERPRISE_ENROLLMENT_COMPLETED = 11,
|
| + ENTERPRISE_ENROLLMENT_BACK = 12,
|
| + RESET_CANCELED = 13,
|
| + KIOSK_AUTOLAUNCH_CANCELED = 14,
|
| + KIOSK_AUTOLAUNCH_CONFIRMED = 15,
|
| + KIOSK_ENABLE_COMPLETED = 16,
|
| + TERMS_OF_SERVICE_DECLINED = 17,
|
| + TERMS_OF_SERVICE_ACCEPTED = 18,
|
| + WRONG_HWID_WARNING_SKIPPED = 19,
|
| + CONTROLLER_PAIRING_FINISHED = 20,
|
| + ENABLE_DEBUGGING_FINISHED = 21,
|
| + ENABLE_DEBUGGING_CANCELED = 22,
|
| + ARC_TERMS_OF_SERVICE_FINISHED = 23,
|
| + UPDATE_ERROR_UPDATING_CRITICAL_UPDATE = 24,
|
| + EXIT_CODES_COUNT // not a real code, must be the last
|
| +};
|
| +
|
| +std::string ExitCodeToString(ScreenExitCode code);
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
|
|
|