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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 // Returns true if valid registration URL is defined. | 82 // Returns true if valid registration URL is defined. |
83 static bool IsRegisterScreenDefined(); | 83 static bool IsRegisterScreenDefined(); |
84 | 84 |
85 // Marks device registered. i.e. second part of OOBE is completed. | 85 // Marks device registered. i.e. second part of OOBE is completed. |
86 static void MarkDeviceRegistered(); | 86 static void MarkDeviceRegistered(); |
87 | 87 |
88 // Returns initial locale from local settings. | 88 // Returns initial locale from local settings. |
89 static std::string GetInitialLocale(); | 89 static std::string GetInitialLocale(); |
90 | 90 |
| 91 // If true zero delays have been enabled (for browser tests). |
| 92 static bool IsZeroDelayEnabled(); |
| 93 |
91 // Sets initial locale in local settings. | 94 // Sets initial locale in local settings. |
92 static void SetInitialLocale(const std::string& locale); | 95 static void SetInitialLocale(const std::string& locale); |
93 | 96 |
94 // Registers OOBE preferences. | 97 // Registers OOBE preferences. |
95 static void RegisterPrefs(PrefService* local_state); | 98 static void RegisterPrefs(PrefService* local_state); |
96 | 99 |
97 // Marks user image screen to be always skipped after login. | 100 // Marks user image screen to be always skipped after login. |
98 static void SkipImageSelectionForTesting(); | 101 static void SkipImageSelectionForTesting(); |
99 | 102 |
100 // Shows the first screen defined by |first_screen_name| or by default | 103 // Shows the first screen defined by |first_screen_name| or by default |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 void SetStatusAreaVisible(bool visible); | 212 void SetStatusAreaVisible(bool visible); |
210 | 213 |
211 // Logs in the specified user via default login screen. | 214 // Logs in the specified user via default login screen. |
212 void Login(const std::string& username, const std::string& password); | 215 void Login(const std::string& username, const std::string& password); |
213 | 216 |
214 // Sets delays to zero. MUST be used only for browser tests. | 217 // Sets delays to zero. MUST be used only for browser tests. |
215 static void SetZeroDelays(); | 218 static void SetZeroDelays(); |
216 | 219 |
217 static bool skip_user_image_selection_; | 220 static bool skip_user_image_selection_; |
218 | 221 |
| 222 static bool zero_delay_enabled_; |
| 223 |
219 // Screens. | 224 // Screens. |
220 scoped_ptr<NetworkScreen> network_screen_; | 225 scoped_ptr<NetworkScreen> network_screen_; |
221 scoped_ptr<UpdateScreen> update_screen_; | 226 scoped_ptr<UpdateScreen> update_screen_; |
222 scoped_ptr<UserImageScreen> user_image_screen_; | 227 scoped_ptr<UserImageScreen> user_image_screen_; |
223 scoped_ptr<EulaScreen> eula_screen_; | 228 scoped_ptr<EulaScreen> eula_screen_; |
224 scoped_ptr<RegistrationScreen> registration_screen_; | 229 scoped_ptr<RegistrationScreen> registration_screen_; |
225 scoped_ptr<HTMLPageScreen> html_page_screen_; | 230 scoped_ptr<HTMLPageScreen> html_page_screen_; |
226 scoped_ptr<EnterpriseEnrollmentScreen> | 231 scoped_ptr<EnterpriseEnrollmentScreen> |
227 enterprise_enrollment_screen_; | 232 enterprise_enrollment_screen_; |
228 | 233 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 279 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
275 friend class WizardControllerFlowTest; | 280 friend class WizardControllerFlowTest; |
276 friend class WizardInProcessBrowserTest; | 281 friend class WizardInProcessBrowserTest; |
277 | 282 |
278 DISALLOW_COPY_AND_ASSIGN(WizardController); | 283 DISALLOW_COPY_AND_ASSIGN(WizardController); |
279 }; | 284 }; |
280 | 285 |
281 } // namespace chromeos | 286 } // namespace chromeos |
282 | 287 |
283 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 288 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |