OLD | NEW |
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_WIZARD_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 static const char kKioskAutolaunchScreenName[]; | 151 static const char kKioskAutolaunchScreenName[]; |
152 static const char kErrorScreenName[]; | 152 static const char kErrorScreenName[]; |
153 static const char kTermsOfServiceScreenName[]; | 153 static const char kTermsOfServiceScreenName[]; |
154 static const char kAutoEnrollmentCheckScreenName[]; | 154 static const char kAutoEnrollmentCheckScreenName[]; |
155 static const char kWrongHWIDScreenName[]; | 155 static const char kWrongHWIDScreenName[]; |
156 static const char kSupervisedUserCreationScreenName[]; | 156 static const char kSupervisedUserCreationScreenName[]; |
157 static const char kAppLaunchSplashScreenName[]; | 157 static const char kAppLaunchSplashScreenName[]; |
158 static const char kHIDDetectionScreenName[]; | 158 static const char kHIDDetectionScreenName[]; |
159 static const char kControllerPairingScreenName[]; | 159 static const char kControllerPairingScreenName[]; |
160 static const char kHostPairingScreenName[]; | 160 static const char kHostPairingScreenName[]; |
| 161 static const char kDeviceDisabledScreenName[]; |
161 | 162 |
162 // Volume percent at which spoken feedback is still audible. | 163 // Volume percent at which spoken feedback is still audible. |
163 static const int kMinAudibleOutputVolumePercent; | 164 static const int kMinAudibleOutputVolumePercent; |
164 | 165 |
165 private: | 166 private: |
166 // Show specific screen. | 167 // Show specific screen. |
167 void ShowNetworkScreen(); | 168 void ShowNetworkScreen(); |
168 void ShowUpdateScreen(); | 169 void ShowUpdateScreen(); |
169 void ShowUserImageScreen(); | 170 void ShowUserImageScreen(); |
170 void ShowEulaScreen(); | 171 void ShowEulaScreen(); |
171 void ShowEnrollmentScreen(); | 172 void ShowEnrollmentScreen(); |
172 void ShowResetScreen(); | 173 void ShowResetScreen(); |
173 void ShowKioskAutolaunchScreen(); | 174 void ShowKioskAutolaunchScreen(); |
174 void ShowKioskEnableScreen(); | 175 void ShowKioskEnableScreen(); |
175 void ShowTermsOfServiceScreen(); | 176 void ShowTermsOfServiceScreen(); |
176 void ShowWrongHWIDScreen(); | 177 void ShowWrongHWIDScreen(); |
177 void ShowAutoEnrollmentCheckScreen(); | 178 void ShowAutoEnrollmentCheckScreen(); |
178 void ShowSupervisedUserCreationScreen(); | 179 void ShowSupervisedUserCreationScreen(); |
179 void ShowHIDDetectionScreen(); | 180 void ShowHIDDetectionScreen(); |
180 void ShowControllerPairingScreen(); | 181 void ShowControllerPairingScreen(); |
181 void ShowHostPairingScreen(); | 182 void ShowHostPairingScreen(); |
| 183 void ShowDeviceDisabledScreen(); |
182 | 184 |
183 // Shows images login screen. | 185 // Shows images login screen. |
184 void ShowLoginScreen(const LoginScreenContext& context); | 186 void ShowLoginScreen(const LoginScreenContext& context); |
185 | 187 |
186 // Resumes a pending login screen. | 188 // Resumes a pending login screen. |
187 void ResumeLoginScreen(); | 189 void ResumeLoginScreen(); |
188 | 190 |
189 // Invokes corresponding first OOBE screen. | 191 // Invokes corresponding first OOBE screen. |
190 void OnHIDScreenNecessityCheck(bool screen_needed); | 192 void OnHIDScreenNecessityCheck(bool screen_needed); |
191 | 193 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 shark_connection_listener_; | 417 shark_connection_listener_; |
416 | 418 |
417 base::WeakPtrFactory<WizardController> weak_factory_; | 419 base::WeakPtrFactory<WizardController> weak_factory_; |
418 | 420 |
419 DISALLOW_COPY_AND_ASSIGN(WizardController); | 421 DISALLOW_COPY_AND_ASSIGN(WizardController); |
420 }; | 422 }; |
421 | 423 |
422 } // namespace chromeos | 424 } // namespace chromeos |
423 | 425 |
424 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 426 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |