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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // Actions that should be done right after update stage is finished. | 208 // Actions that should be done right after update stage is finished. |
209 void PerformPostUpdateActions(); | 209 void PerformPostUpdateActions(); |
210 | 210 |
211 // Overridden from ScreenObserver: | 211 // Overridden from ScreenObserver: |
212 virtual void OnExit(ExitCodes exit_code) OVERRIDE; | 212 virtual void OnExit(ExitCodes exit_code) OVERRIDE; |
213 virtual void ShowCurrentScreen() OVERRIDE; | 213 virtual void ShowCurrentScreen() OVERRIDE; |
214 virtual void OnSetUserNamePassword(const std::string& username, | 214 virtual void OnSetUserNamePassword(const std::string& username, |
215 const std::string& password) OVERRIDE; | 215 const std::string& password) OVERRIDE; |
216 virtual void SetUsageStatisticsReporting(bool val) OVERRIDE; | 216 virtual void SetUsageStatisticsReporting(bool val) OVERRIDE; |
217 virtual bool GetUsageStatisticsReporting() const OVERRIDE; | 217 virtual bool GetUsageStatisticsReporting() const OVERRIDE; |
218 virtual void SetRlzEnabled(bool val) OVERRIDE; | |
219 virtual bool GetRlzEnabled() const OVERRIDE; | |
220 | 218 |
221 // Switches from one screen to another. | 219 // Switches from one screen to another. |
222 void SetCurrentScreen(WizardScreen* screen); | 220 void SetCurrentScreen(WizardScreen* screen); |
223 | 221 |
224 // Switches from one screen to another with delay before showing. Calling | 222 // Switches from one screen to another with delay before showing. Calling |
225 // ShowCurrentScreen directly forces screen to be shown immediately. | 223 // ShowCurrentScreen directly forces screen to be shown immediately. |
226 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); | 224 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); |
227 | 225 |
228 // Changes status area visibility. | 226 // Changes status area visibility. |
229 void SetStatusAreaVisible(bool visible); | 227 void SetStatusAreaVisible(bool visible); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 scoped_ptr<base::DictionaryValue> screen_parameters_; | 272 scoped_ptr<base::DictionaryValue> screen_parameters_; |
275 | 273 |
276 base::OneShotTimer<WizardController> smooth_show_timer_; | 274 base::OneShotTimer<WizardController> smooth_show_timer_; |
277 | 275 |
278 OobeDisplay* oobe_display_; | 276 OobeDisplay* oobe_display_; |
279 | 277 |
280 // State of Usage stat/error reporting checkbox on EULA screen | 278 // State of Usage stat/error reporting checkbox on EULA screen |
281 // during wizard lifetime. | 279 // during wizard lifetime. |
282 bool usage_statistics_reporting_; | 280 bool usage_statistics_reporting_; |
283 | 281 |
284 // Whether RLZ tracking is enabled. | |
285 bool rlz_enabled_; | |
286 | |
287 // If true then update check is cancelled and enrollment is started after | 282 // If true then update check is cancelled and enrollment is started after |
288 // EULA is accepted. | 283 // EULA is accepted. |
289 bool skip_update_enroll_after_eula_; | 284 bool skip_update_enroll_after_eula_; |
290 | 285 |
291 // Time when the EULA was accepted. Used to measure the duration from the EULA | 286 // Time when the EULA was accepted. Used to measure the duration from the EULA |
292 // acceptance until the Sign-In screen is displayed. | 287 // acceptance until the Sign-In screen is displayed. |
293 base::Time time_eula_accepted_; | 288 base::Time time_eula_accepted_; |
294 | 289 |
295 ObserverList<Observer> observer_list_; | 290 ObserverList<Observer> observer_list_; |
296 | 291 |
297 bool login_screen_started_; | 292 bool login_screen_started_; |
298 | 293 |
299 base::WeakPtrFactory<WizardController> weak_ptr_factory_; | 294 base::WeakPtrFactory<WizardController> weak_ptr_factory_; |
300 | 295 |
301 FRIEND_TEST_ALL_PREFIXES(EnterpriseEnrollmentScreenTest, TestCancel); | 296 FRIEND_TEST_ALL_PREFIXES(EnterpriseEnrollmentScreenTest, TestCancel); |
302 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 297 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
303 friend class WizardControllerFlowTest; | 298 friend class WizardControllerFlowTest; |
304 friend class WizardInProcessBrowserTest; | 299 friend class WizardInProcessBrowserTest; |
305 | 300 |
306 DISALLOW_COPY_AND_ASSIGN(WizardController); | 301 DISALLOW_COPY_AND_ASSIGN(WizardController); |
307 }; | 302 }; |
308 | 303 |
309 } // namespace chromeos | 304 } // namespace chromeos |
310 | 305 |
311 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 306 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |