| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // pairing remora OOBE from the beginning no matter an eligible controller is | 295 // pairing remora OOBE from the beginning no matter an eligible controller is |
| 296 // detected or not. | 296 // detected or not. |
| 297 bool IsRemoraPairingOobe() const; | 297 bool IsRemoraPairingOobe() const; |
| 298 | 298 |
| 299 // Returns true if arc terms of service should be shown. | 299 // Returns true if arc terms of service should be shown. |
| 300 bool ShouldShowArcTerms() const; | 300 bool ShouldShowArcTerms() const; |
| 301 | 301 |
| 302 // Returns true if voice interaction value prop should be shown. | 302 // Returns true if voice interaction value prop should be shown. |
| 303 bool ShouldShowVoiceInteractionValueProp() const; | 303 bool ShouldShowVoiceInteractionValueProp() const; |
| 304 | 304 |
| 305 // Start voice interaction setup wizard in container |
| 306 void StartVoiceInteractionSetupWizard(); |
| 307 |
| 305 // Starts listening for an incoming shark controller connection, if we are | 308 // Starts listening for an incoming shark controller connection, if we are |
| 306 // running remora OOBE. | 309 // running remora OOBE. |
| 307 void MaybeStartListeningForSharkConnection(); | 310 void MaybeStartListeningForSharkConnection(); |
| 308 | 311 |
| 309 // Called when a connection to controller has been established. Wizard | 312 // Called when a connection to controller has been established. Wizard |
| 310 // controller takes the ownership of |pairing_controller| after that call. | 313 // controller takes the ownership of |pairing_controller| after that call. |
| 311 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> | 314 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> |
| 312 pairing_controller); | 315 pairing_controller); |
| 313 | 316 |
| 314 // Callback functions for AddNetworkRequested(). | 317 // Callback functions for AddNetworkRequested(). |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 388 |
| 386 // Time when OOBE was started. Used to measure the total time from boot to | 389 // Time when OOBE was started. Used to measure the total time from boot to |
| 387 // user Sign-In completed. | 390 // user Sign-In completed. |
| 388 base::Time time_oobe_started_; | 391 base::Time time_oobe_started_; |
| 389 | 392 |
| 390 // Whether OOBE has yet been marked as completed. | 393 // Whether OOBE has yet been marked as completed. |
| 391 bool oobe_marked_completed_ = false; | 394 bool oobe_marked_completed_ = false; |
| 392 | 395 |
| 393 bool login_screen_started_ = false; | 396 bool login_screen_started_ = false; |
| 394 | 397 |
| 398 bool device_marked_registered_ = false; |
| 399 |
| 395 // Indicates that once image selection screen finishes we should return to | 400 // Indicates that once image selection screen finishes we should return to |
| 396 // a previous screen instead of proceeding with usual flow. | 401 // a previous screen instead of proceeding with usual flow. |
| 397 bool user_image_screen_return_to_previous_hack_ = false; | 402 bool user_image_screen_return_to_previous_hack_ = false; |
| 398 | 403 |
| 399 // Non-owning pointer to local state used for testing. | 404 // Non-owning pointer to local state used for testing. |
| 400 static PrefService* local_state_for_testing_; | 405 static PrefService* local_state_for_testing_; |
| 401 | 406 |
| 402 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); | 407 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); |
| 403 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); | 408 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); |
| 404 FRIEND_TEST_ALL_PREFIXES(WizardControllerDeviceStateTest, | 409 FRIEND_TEST_ALL_PREFIXES(WizardControllerDeviceStateTest, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 BaseScreen* hid_screen_ = nullptr; | 442 BaseScreen* hid_screen_ = nullptr; |
| 438 | 443 |
| 439 base::WeakPtrFactory<WizardController> weak_factory_; | 444 base::WeakPtrFactory<WizardController> weak_factory_; |
| 440 | 445 |
| 441 DISALLOW_COPY_AND_ASSIGN(WizardController); | 446 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 442 }; | 447 }; |
| 443 | 448 |
| 444 } // namespace chromeos | 449 } // namespace chromeos |
| 445 | 450 |
| 446 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 451 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |