| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // Actions that should be done right after EULA is accepted, | 233 // Actions that should be done right after EULA is accepted, |
| 234 // before update check. | 234 // before update check. |
| 235 void PerformPostEulaActions(); | 235 void PerformPostEulaActions(); |
| 236 | 236 |
| 237 // Actions that should be done right after update stage is finished. | 237 // Actions that should be done right after update stage is finished. |
| 238 void PerformOOBECompletedActions(); | 238 void PerformOOBECompletedActions(); |
| 239 | 239 |
| 240 // Overridden from ScreenObserver: | 240 // Overridden from ScreenObserver: |
| 241 virtual void OnExit(ExitCodes exit_code) override; | 241 virtual void OnExit(ExitCodes exit_code) override; |
| 242 virtual void ShowCurrentScreen() override; | 242 virtual void ShowCurrentScreen() override; |
| 243 virtual void OnSetUserNamePassword(const std::string& username, | |
| 244 const std::string& password) override; | |
| 245 virtual void SetHostConfiguration() override; | 243 virtual void SetHostConfiguration() override; |
| 246 virtual void ConfigureHost(bool accepted_eula, | 244 virtual void ConfigureHost(bool accepted_eula, |
| 247 const std::string& lang, | 245 const std::string& lang, |
| 248 const std::string& timezone, | 246 const std::string& timezone, |
| 249 bool send_reports, | 247 bool send_reports, |
| 250 const std::string& keyboard_layout) override; | 248 const std::string& keyboard_layout) override; |
| 251 virtual ErrorScreen* GetErrorScreen() override; | 249 virtual ErrorScreen* GetErrorScreen() override; |
| 252 virtual void ShowErrorScreen() override; | 250 virtual void ShowErrorScreen() override; |
| 253 virtual void HideErrorScreen(BaseScreen* parent_screen) override; | 251 virtual void HideErrorScreen(BaseScreen* parent_screen) override; |
| 254 | 252 |
| 255 // Overridden from EulaScreen::Delegate: | 253 // Overridden from EulaScreen::Delegate: |
| 256 virtual void SetUsageStatisticsReporting(bool val) override; | 254 virtual void SetUsageStatisticsReporting(bool val) override; |
| 257 virtual bool GetUsageStatisticsReporting() const override; | 255 virtual bool GetUsageStatisticsReporting() const override; |
| 258 | 256 |
| 259 // Notification of a change in the state of an accessibility setting. | 257 // Notification of a change in the state of an accessibility setting. |
| 260 void OnAccessibilityStatusChanged( | 258 void OnAccessibilityStatusChanged( |
| 261 const AccessibilityStatusEventDetails& details); | 259 const AccessibilityStatusEventDetails& details); |
| 262 | 260 |
| 263 // Switches from one screen to another. | 261 // Switches from one screen to another. |
| 264 void SetCurrentScreen(BaseScreen* screen); | 262 void SetCurrentScreen(BaseScreen* screen); |
| 265 | 263 |
| 266 // Switches from one screen to another with delay before showing. Calling | 264 // Switches from one screen to another with delay before showing. Calling |
| 267 // ShowCurrentScreen directly forces screen to be shown immediately. | 265 // ShowCurrentScreen directly forces screen to be shown immediately. |
| 268 void SetCurrentScreenSmooth(BaseScreen* screen, bool use_smoothing); | 266 void SetCurrentScreenSmooth(BaseScreen* screen, bool use_smoothing); |
| 269 | 267 |
| 270 // Changes status area visibility. | 268 // Changes status area visibility. |
| 271 void SetStatusAreaVisible(bool visible); | 269 void SetStatusAreaVisible(bool visible); |
| 272 | 270 |
| 273 // Logs in the specified user via default login screen. | |
| 274 void Login(const std::string& username, const std::string& password); | |
| 275 | |
| 276 // Launched kiosk app configured for auto-launch. | 271 // Launched kiosk app configured for auto-launch. |
| 277 void AutoLaunchKioskApp(); | 272 void AutoLaunchKioskApp(); |
| 278 | 273 |
| 279 // Checks whether the user is allowed to exit enrollment. | 274 // Checks whether the user is allowed to exit enrollment. |
| 280 static bool CanExitEnrollment(); | 275 static bool CanExitEnrollment(); |
| 281 | 276 |
| 282 // Gets the management domain. | 277 // Gets the management domain. |
| 283 static std::string GetForcedEnrollmentDomain(); | 278 static std::string GetForcedEnrollmentDomain(); |
| 284 | 279 |
| 285 // Called when LocalState is initialized. | 280 // Called when LocalState is initialized. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 static bool skip_post_login_screens_; | 325 static bool skip_post_login_screens_; |
| 331 | 326 |
| 332 static bool zero_delay_enabled_; | 327 static bool zero_delay_enabled_; |
| 333 | 328 |
| 334 // Screen that's currently active. | 329 // Screen that's currently active. |
| 335 BaseScreen* current_screen_; | 330 BaseScreen* current_screen_; |
| 336 | 331 |
| 337 // Screen that was active before, or NULL for login screen. | 332 // Screen that was active before, or NULL for login screen. |
| 338 BaseScreen* previous_screen_; | 333 BaseScreen* previous_screen_; |
| 339 | 334 |
| 340 std::string username_; | |
| 341 std::string password_; | |
| 342 | |
| 343 // True if running official BUILD. | 335 // True if running official BUILD. |
| 344 bool is_official_build_; | 336 bool is_official_build_; |
| 345 | 337 |
| 346 // True if full OOBE flow should be shown. | 338 // True if full OOBE flow should be shown. |
| 347 bool is_out_of_box_; | 339 bool is_out_of_box_; |
| 348 | 340 |
| 349 // Value of the screen name that WizardController was started with. | 341 // Value of the screen name that WizardController was started with. |
| 350 std::string first_screen_name_; | 342 std::string first_screen_name_; |
| 351 | 343 |
| 352 // OOBE/login display host. | 344 // OOBE/login display host. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 shark_connection_listener_; | 420 shark_connection_listener_; |
| 429 | 421 |
| 430 base::WeakPtrFactory<WizardController> weak_factory_; | 422 base::WeakPtrFactory<WizardController> weak_factory_; |
| 431 | 423 |
| 432 DISALLOW_COPY_AND_ASSIGN(WizardController); | 424 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 433 }; | 425 }; |
| 434 | 426 |
| 435 } // namespace chromeos | 427 } // namespace chromeos |
| 436 | 428 |
| 437 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 429 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |