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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
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_
« 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