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

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

Issue 547503002: Redirect to the enterprise enrollment screen during remora and shark pairing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ENTERPRISE_ENROLLMENT_BACK = 13, 42 ENTERPRISE_ENROLLMENT_BACK = 13,
43 RESET_CANCELED = 14, 43 RESET_CANCELED = 14,
44 KIOSK_AUTOLAUNCH_CANCELED = 15, 44 KIOSK_AUTOLAUNCH_CANCELED = 15,
45 KIOSK_AUTOLAUNCH_CONFIRMED = 16, 45 KIOSK_AUTOLAUNCH_CONFIRMED = 16,
46 KIOSK_ENABLE_COMPLETED = 17, 46 KIOSK_ENABLE_COMPLETED = 17,
47 TERMS_OF_SERVICE_DECLINED = 18, 47 TERMS_OF_SERVICE_DECLINED = 18,
48 TERMS_OF_SERVICE_ACCEPTED = 19, 48 TERMS_OF_SERVICE_ACCEPTED = 19,
49 WRONG_HWID_WARNING_SKIPPED = 20, 49 WRONG_HWID_WARNING_SKIPPED = 20,
50 CONTROLLER_PAIRING_FINISHED = 21, 50 CONTROLLER_PAIRING_FINISHED = 21,
51 HOST_PAIRING_FINISHED = 22, 51 HOST_PAIRING_FINISHED = 22,
52 CONTROLLER_PAIRING_NEED_ENROLLMENT = 23,
52 EXIT_CODES_COUNT // not a real code, must be the last 53 EXIT_CODES_COUNT // not a real code, must be the last
53 }; 54 };
54 55
55 // Method called by a screen when user's done with it. 56 // Method called by a screen when user's done with it.
56 virtual void OnExit(ExitCodes exit_code) = 0; 57 virtual void OnExit(ExitCodes exit_code) = 0;
57 58
58 // Forces current screen showing. 59 // Forces current screen showing.
59 virtual void ShowCurrentScreen() = 0; 60 virtual void ShowCurrentScreen() = 0;
60 61
61 // Notify about new user names and password. It is used to autologin 62 // Notify about new user names and password. It is used to autologin
62 // just created user without asking the same info once again. 63 // just created user without asking the same info once again.
63 virtual void OnSetUserNamePassword(const std::string& username, 64 virtual void OnSetUserNamePassword(const std::string& username,
64 const std::string& password) = 0; 65 const std::string& password) = 0;
65 66
66 // Whether usage statistics reporting is enabled on EULA screen. 67 // Whether usage statistics reporting is enabled on EULA screen.
67 virtual void SetUsageStatisticsReporting(bool val) = 0; 68 virtual void SetUsageStatisticsReporting(bool val) = 0;
68 virtual bool GetUsageStatisticsReporting() const = 0; 69 virtual bool GetUsageStatisticsReporting() const = 0;
69 70
70 virtual ErrorScreen* GetErrorScreen() = 0; 71 virtual ErrorScreen* GetErrorScreen() = 0;
71 virtual void ShowErrorScreen() = 0; 72 virtual void ShowErrorScreen() = 0;
72 virtual void HideErrorScreen(WizardScreen* parent_screen) = 0; 73 virtual void HideErrorScreen(WizardScreen* parent_screen) = 0;
73 74
74 protected: 75 protected:
75 virtual ~ScreenObserver() {} 76 virtual ~ScreenObserver() {}
76 }; 77 };
77 78
78 } // namespace chromeos 79 } // namespace chromeos
79 80
80 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_ 81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_SCREEN_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698