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 | |
92 // Shows the first screen defined by |first_screen| or by default if the | 88 // Shows the first screen defined by |first_screen| or by default if the |
93 // parameter is empty. | 89 // parameter is empty. |
94 void Init(OobeScreen first_screen); | 90 void Init(OobeScreen first_screen); |
95 | 91 |
96 // Advances to screen defined by |screen| and shows it. | 92 // Advances to screen defined by |screen| and shows it. |
97 void AdvanceToScreen(OobeScreen screen); | 93 void AdvanceToScreen(OobeScreen screen); |
98 | 94 |
99 // Advances to login screen. Should be used in for testing only. | 95 // Advances to login screen. Should be used in for testing only. |
100 void SkipToLoginForTesting(const LoginScreenContext& context); | 96 void SkipToLoginForTesting(const LoginScreenContext& context); |
101 | 97 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 BaseScreen* hid_screen_ = nullptr; | 422 BaseScreen* hid_screen_ = nullptr; |
427 | 423 |
428 base::WeakPtrFactory<WizardController> weak_factory_; | 424 base::WeakPtrFactory<WizardController> weak_factory_; |
429 | 425 |
430 DISALLOW_COPY_AND_ASSIGN(WizardController); | 426 DISALLOW_COPY_AND_ASSIGN(WizardController); |
431 }; | 427 }; |
432 | 428 |
433 } // namespace chromeos | 429 } // namespace chromeos |
434 | 430 |
435 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 431 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |