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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Called right after the browser session has started. | 120 // Called right after the browser session has started. |
121 void OnSessionStart(); | 121 void OnSessionStart(); |
122 | 122 |
123 // Skip update, go straight to enrollment after EULA is accepted. | 123 // Skip update, go straight to enrollment after EULA is accepted. |
124 void SkipUpdateEnrollAfterEula(); | 124 void SkipUpdateEnrollAfterEula(); |
125 | 125 |
126 // TODO(antrim) : temporary hack. Should be removed once screen system is | 126 // TODO(antrim) : temporary hack. Should be removed once screen system is |
127 // reworked at hackaton. | 127 // reworked at hackaton. |
128 void EnableUserImageScreenReturnToPreviousHack(); | 128 void EnableUserImageScreenReturnToPreviousHack(); |
129 | 129 |
| 130 // Callback for enrollment auth token. |
| 131 void OnEnrollmentAuthTokenReceived(const std::string& auth_token); |
130 | 132 |
131 // Returns a pointer to the current screen or NULL if there's no such | 133 // Returns a pointer to the current screen or NULL if there's no such |
132 // screen. | 134 // screen. |
133 WizardScreen* current_screen() const { return current_screen_; } | 135 WizardScreen* current_screen() const { return current_screen_; } |
134 | 136 |
135 // Returns true if the current wizard instance has reached the login screen. | 137 // Returns true if the current wizard instance has reached the login screen. |
136 bool login_screen_started() const { return login_screen_started_; } | 138 bool login_screen_started() const { return login_screen_started_; } |
137 | 139 |
138 // ScreenManager implementation. | 140 // ScreenManager implementation. |
139 virtual WizardScreen* CreateScreen(const std::string& screen_name) OVERRIDE; | 141 virtual WizardScreen* CreateScreen(const std::string& screen_name) OVERRIDE; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 292 |
291 // Called from SimpleGeolocationProvider when location is resolved. | 293 // Called from SimpleGeolocationProvider when location is resolved. |
292 void OnLocationResolved(const Geoposition& position, | 294 void OnLocationResolved(const Geoposition& position, |
293 bool server_error, | 295 bool server_error, |
294 const base::TimeDelta elapsed); | 296 const base::TimeDelta elapsed); |
295 | 297 |
296 // Returns true if callback has been installed. | 298 // Returns true if callback has been installed. |
297 // Returns false if timezone has already been resolved. | 299 // Returns false if timezone has already been resolved. |
298 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); | 300 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); |
299 | 301 |
300 // Callback for enrollment auth token. | |
301 void OnEnrollmentAuthTokenReceived(const std::string& auth_token); | |
302 | |
303 // Whether to skip any screens that may normally be shown after login | 302 // Whether to skip any screens that may normally be shown after login |
304 // (registration, Terms of Service, user image selection). | 303 // (registration, Terms of Service, user image selection). |
305 static bool skip_post_login_screens_; | 304 static bool skip_post_login_screens_; |
306 | 305 |
307 static bool zero_delay_enabled_; | 306 static bool zero_delay_enabled_; |
308 | 307 |
309 // Screen that's currently active. | 308 // Screen that's currently active. |
310 WizardScreen* current_screen_; | 309 WizardScreen* current_screen_; |
311 | 310 |
312 // Screen that was active before, or NULL for login screen. | 311 // Screen that was active before, or NULL for login screen. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 base::Closure on_timezone_resolved_for_testing_; | 395 base::Closure on_timezone_resolved_for_testing_; |
397 | 396 |
398 base::WeakPtrFactory<WizardController> weak_factory_; | 397 base::WeakPtrFactory<WizardController> weak_factory_; |
399 | 398 |
400 DISALLOW_COPY_AND_ASSIGN(WizardController); | 399 DISALLOW_COPY_AND_ASSIGN(WizardController); |
401 }; | 400 }; |
402 | 401 |
403 } // namespace chromeos | 402 } // namespace chromeos |
404 | 403 |
405 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 404 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |