| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // If true zero delays have been enabled (for browser tests). | 78 // If true zero delays have been enabled (for browser tests). |
| 79 static bool IsZeroDelayEnabled(); | 79 static bool IsZeroDelayEnabled(); |
| 80 | 80 |
| 81 // Checks whether screen show time should be tracked with UMA. | 81 // Checks whether screen show time should be tracked with UMA. |
| 82 static bool IsOOBEStepToTrack(OobeScreen screen_id); | 82 static bool IsOOBEStepToTrack(OobeScreen screen_id); |
| 83 | 83 |
| 84 // Skips any screens that may normally be shown after login (registration, | 84 // Skips any screens that may normally be shown after login (registration, |
| 85 // Terms of Service, user image selection). | 85 // Terms of Service, user image selection). |
| 86 static void SkipPostLoginScreensForTesting(); | 86 static void SkipPostLoginScreensForTesting(); |
| 87 | 87 |
| 88 // Returns true if OOBE is operating under the |
| 89 // Zero-Touch Hands-Off Enrollment Flow. |
| 90 static bool UsingHandsOffEnrollment(); |
| 91 |
| 88 // Shows the first screen defined by |first_screen| or by default if the | 92 // Shows the first screen defined by |first_screen| or by default if the |
| 89 // parameter is empty. | 93 // parameter is empty. |
| 90 void Init(OobeScreen first_screen); | 94 void Init(OobeScreen first_screen); |
| 91 | 95 |
| 92 // Advances to screen defined by |screen| and shows it. | 96 // Advances to screen defined by |screen| and shows it. |
| 93 void AdvanceToScreen(OobeScreen screen); | 97 void AdvanceToScreen(OobeScreen screen); |
| 94 | 98 |
| 95 // Advances to login screen. Should be used in for testing only. | 99 // Advances to login screen. Should be used in for testing only. |
| 96 void SkipToLoginForTesting(const LoginScreenContext& context); | 100 void SkipToLoginForTesting(const LoginScreenContext& context); |
| 97 | 101 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 BaseScreen* hid_screen_ = nullptr; | 426 BaseScreen* hid_screen_ = nullptr; |
| 423 | 427 |
| 424 base::WeakPtrFactory<WizardController> weak_factory_; | 428 base::WeakPtrFactory<WizardController> weak_factory_; |
| 425 | 429 |
| 426 DISALLOW_COPY_AND_ASSIGN(WizardController); | 430 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 427 }; | 431 }; |
| 428 | 432 |
| 429 } // namespace chromeos | 433 } // namespace chromeos |
| 430 | 434 |
| 431 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 435 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |