| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 void OnUserImageSkipped(); | 142 void OnUserImageSkipped(); |
| 143 void OnRegistrationSuccess(); | 143 void OnRegistrationSuccess(); |
| 144 void OnRegistrationSkipped(); | 144 void OnRegistrationSkipped(); |
| 145 void OnEnterpriseEnrollmentDone(); | 145 void OnEnterpriseEnrollmentDone(); |
| 146 void OnEnterpriseAutoEnrollmentDone(); | 146 void OnEnterpriseAutoEnrollmentDone(); |
| 147 void OnOOBECompleted(); | 147 void OnOOBECompleted(); |
| 148 | 148 |
| 149 // Shows update screen and starts update process. | 149 // Shows update screen and starts update process. |
| 150 void InitiateOOBEUpdate(); | 150 void InitiateOOBEUpdate(); |
| 151 | 151 |
| 152 // Actions that should be done right after EULA is accepted, |
| 153 // before update check. |
| 154 void PerformPostEulaActions(); |
| 155 |
| 152 // Overridden from ScreenObserver: | 156 // Overridden from ScreenObserver: |
| 153 virtual void OnExit(ExitCodes exit_code) OVERRIDE; | 157 virtual void OnExit(ExitCodes exit_code) OVERRIDE; |
| 154 virtual void ShowCurrentScreen() OVERRIDE; | 158 virtual void ShowCurrentScreen() OVERRIDE; |
| 159 virtual void SkipUpdateEnrollAfterEula() OVERRIDE; |
| 155 virtual void OnSetUserNamePassword(const std::string& username, | 160 virtual void OnSetUserNamePassword(const std::string& username, |
| 156 const std::string& password) OVERRIDE; | 161 const std::string& password) OVERRIDE; |
| 157 virtual void set_usage_statistics_reporting(bool val) OVERRIDE; | 162 virtual void SetUsageStatisticsReporting(bool val) OVERRIDE; |
| 158 virtual bool usage_statistics_reporting() const OVERRIDE; | 163 virtual bool GetUsageStatisticsReporting() const OVERRIDE; |
| 159 | 164 |
| 160 // Switches from one screen to another. | 165 // Switches from one screen to another. |
| 161 void SetCurrentScreen(WizardScreen* screen); | 166 void SetCurrentScreen(WizardScreen* screen); |
| 162 | 167 |
| 163 // Switches from one screen to another with delay before showing. Calling | 168 // Switches from one screen to another with delay before showing. Calling |
| 164 // ShowCurrentScreen directly forces screen to be shown immediately. | 169 // ShowCurrentScreen directly forces screen to be shown immediately. |
| 165 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); | 170 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); |
| 166 | 171 |
| 167 // Changes status area visibility. | 172 // Changes status area visibility. |
| 168 void SetStatusAreaVisible(bool visible); | 173 void SetStatusAreaVisible(bool visible); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 scoped_ptr<base::DictionaryValue> screen_parameters_; | 213 scoped_ptr<base::DictionaryValue> screen_parameters_; |
| 209 | 214 |
| 210 base::OneShotTimer<WizardController> smooth_show_timer_; | 215 base::OneShotTimer<WizardController> smooth_show_timer_; |
| 211 | 216 |
| 212 OobeDisplay* oobe_display_; | 217 OobeDisplay* oobe_display_; |
| 213 | 218 |
| 214 // State of Usage stat/error reporting checkbox on EULA screen | 219 // State of Usage stat/error reporting checkbox on EULA screen |
| 215 // during wizard lifetime. | 220 // during wizard lifetime. |
| 216 bool usage_statistics_reporting_; | 221 bool usage_statistics_reporting_; |
| 217 | 222 |
| 223 // If true then update check is cancelled and enrollment is started after |
| 224 // EULA is accepted. |
| 225 bool skip_update_enroll_after_eula_; |
| 226 |
| 218 // Time when the EULA was accepted. Used to measure the duration from the EULA | 227 // Time when the EULA was accepted. Used to measure the duration from the EULA |
| 219 // acceptance until the Sign-In screen is displayed. | 228 // acceptance until the Sign-In screen is displayed. |
| 220 base::Time time_eula_accepted_; | 229 base::Time time_eula_accepted_; |
| 221 | 230 |
| 222 FRIEND_TEST_ALL_PREFIXES(EnterpriseEnrollmentScreenTest, TestCancel); | 231 FRIEND_TEST_ALL_PREFIXES(EnterpriseEnrollmentScreenTest, TestCancel); |
| 223 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 232 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
| 224 friend class WizardControllerFlowTest; | 233 friend class WizardControllerFlowTest; |
| 225 friend class WizardInProcessBrowserTest; | 234 friend class WizardInProcessBrowserTest; |
| 226 | 235 |
| 227 DISALLOW_COPY_AND_ASSIGN(WizardController); | 236 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 228 }; | 237 }; |
| 229 | 238 |
| 230 } // namespace chromeos | 239 } // namespace chromeos |
| 231 | 240 |
| 232 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 241 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |