Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: chrome/browser/chromeos/login/screens/screen_exit_code.h

Issue 2705363002: cros: Move BaseScreenDelegate::ExitCodes into separate file, ScreenExitCode. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
7
8 #include <string>
9
10 namespace chromeos {
11
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
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.
16 //
17 // There must be an exit code for each way to exit the screen for each screen.
18 //
19 // Numeric ids are provided to facilitate interpretation of log files only,
20 // they are subject to change without notice.
21 enum class ScreenExitCode {
22 // "Continue" was pressed on network screen and network is online.
23 NETWORK_CONNECTED = 0,
24 HID_DETECTION_COMPLETED = 1,
25 // Connection failed while trying to load a WebPageScreen.
26 CONNECTION_FAILED = 2,
27 UPDATE_INSTALLED = 3,
28 UPDATE_NOUPDATE = 4,
29 UPDATE_ERROR_CHECKING_FOR_UPDATE = 5,
30 UPDATE_ERROR_UPDATING = 6,
31 USER_IMAGE_SELECTED = 7,
32 EULA_ACCEPTED = 8,
33 EULA_BACK = 9,
34 ENTERPRISE_AUTO_ENROLLMENT_CHECK_COMPLETED = 10,
35 ENTERPRISE_ENROLLMENT_COMPLETED = 11,
36 ENTERPRISE_ENROLLMENT_BACK = 12,
37 RESET_CANCELED = 13,
38 KIOSK_AUTOLAUNCH_CANCELED = 14,
39 KIOSK_AUTOLAUNCH_CONFIRMED = 15,
40 KIOSK_ENABLE_COMPLETED = 16,
41 TERMS_OF_SERVICE_DECLINED = 17,
42 TERMS_OF_SERVICE_ACCEPTED = 18,
43 WRONG_HWID_WARNING_SKIPPED = 19,
44 CONTROLLER_PAIRING_FINISHED = 20,
45 ENABLE_DEBUGGING_FINISHED = 21,
46 ENABLE_DEBUGGING_CANCELED = 22,
47 ARC_TERMS_OF_SERVICE_FINISHED = 23,
48 UPDATE_ERROR_UPDATING_CRITICAL_UPDATE = 24,
49 EXIT_CODES_COUNT // not a real code, must be the last
50 };
51
52 std::string ExitCodeToString(ScreenExitCode code);
53
54 } // namespace chromeos
55
56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_EXIT_CODE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/reset_screen.cc ('k') | chrome/browser/chromeos/login/screens/screen_exit_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698