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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // screen. | 150 // screen. |
151 WizardScreen* current_screen() const { return current_screen_; } | 151 WizardScreen* current_screen() const { return current_screen_; } |
152 | 152 |
153 // Returns true if the current wizard instance has reached the login screen. | 153 // Returns true if the current wizard instance has reached the login screen. |
154 bool login_screen_started() const { return login_screen_started_; } | 154 bool login_screen_started() const { return login_screen_started_; } |
155 | 155 |
156 static const char kNetworkScreenName[]; | 156 static const char kNetworkScreenName[]; |
157 static const char kLoginScreenName[]; | 157 static const char kLoginScreenName[]; |
158 static const char kUpdateScreenName[]; | 158 static const char kUpdateScreenName[]; |
159 static const char kUserImageScreenName[]; | 159 static const char kUserImageScreenName[]; |
160 // Not a real screen, just a placeholder for OOBE final stage. | |
161 static const char kRegistrationScreenName[]; | |
162 static const char kOutOfBoxScreenName[]; | 160 static const char kOutOfBoxScreenName[]; |
163 static const char kTestNoScreenName[]; | 161 static const char kTestNoScreenName[]; |
164 static const char kEulaScreenName[]; | 162 static const char kEulaScreenName[]; |
165 static const char kEnterpriseEnrollmentScreenName[]; | 163 static const char kEnterpriseEnrollmentScreenName[]; |
166 static const char kResetScreenName[]; | 164 static const char kResetScreenName[]; |
167 static const char kErrorScreenName[]; | 165 static const char kErrorScreenName[]; |
168 static const char kTermsOfServiceScreenName[]; | 166 static const char kTermsOfServiceScreenName[]; |
169 static const char kWrongHWIDScreenName[]; | 167 static const char kWrongHWIDScreenName[]; |
170 static const char kLocallyManagedUserCreationScreenName[]; | 168 static const char kLocallyManagedUserCreationScreenName[]; |
171 | 169 |
(...skipping 18 matching lines...) Expand all Loading... |
190 // Exit handlers: | 188 // Exit handlers: |
191 void OnNetworkConnected(); | 189 void OnNetworkConnected(); |
192 void OnNetworkOffline(); | 190 void OnNetworkOffline(); |
193 void OnConnectionFailed(); | 191 void OnConnectionFailed(); |
194 void OnUpdateCompleted(); | 192 void OnUpdateCompleted(); |
195 void OnEulaAccepted(); | 193 void OnEulaAccepted(); |
196 void OnUpdateErrorCheckingForUpdate(); | 194 void OnUpdateErrorCheckingForUpdate(); |
197 void OnUpdateErrorUpdating(); | 195 void OnUpdateErrorUpdating(); |
198 void OnUserImageSelected(); | 196 void OnUserImageSelected(); |
199 void OnUserImageSkipped(); | 197 void OnUserImageSkipped(); |
200 void OnRegistrationSuccess(); | |
201 void OnRegistrationSkipped(); | |
202 void OnEnterpriseEnrollmentDone(); | 198 void OnEnterpriseEnrollmentDone(); |
203 void OnEnterpriseAutoEnrollmentDone(); | 199 void OnEnterpriseAutoEnrollmentDone(); |
204 void OnResetCanceled(); | 200 void OnResetCanceled(); |
205 void OnWrongHWIDWarningSkipped(); | 201 void OnWrongHWIDWarningSkipped(); |
206 void OnOOBECompleted(); | 202 void OnOOBECompleted(); |
207 void OnTermsOfServiceDeclined(); | 203 void OnTermsOfServiceDeclined(); |
208 void OnTermsOfServiceAccepted(); | 204 void OnTermsOfServiceAccepted(); |
209 | 205 |
210 // Loads brand code on I/O enabled thread and stores to Local State. | 206 // Loads brand code on I/O enabled thread and stores to Local State. |
211 void LoadBrandCodeFromFile(); | 207 void LoadBrandCodeFromFile(); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 318 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
323 friend class WizardControllerFlowTest; | 319 friend class WizardControllerFlowTest; |
324 friend class WizardInProcessBrowserTest; | 320 friend class WizardInProcessBrowserTest; |
325 | 321 |
326 DISALLOW_COPY_AND_ASSIGN(WizardController); | 322 DISALLOW_COPY_AND_ASSIGN(WizardController); |
327 }; | 323 }; |
328 | 324 |
329 } // namespace chromeos | 325 } // namespace chromeos |
330 | 326 |
331 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |