OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ | 5 #ifndef COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ |
6 #define COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ | 6 #define COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Overridden from ControllerPairingController: | 66 // Overridden from ControllerPairingController: |
67 virtual void AddObserver(Observer* observer) OVERRIDE; | 67 virtual void AddObserver(Observer* observer) OVERRIDE; |
68 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 68 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
69 virtual Stage GetCurrentStage() OVERRIDE; | 69 virtual Stage GetCurrentStage() OVERRIDE; |
70 virtual void StartPairing() OVERRIDE; | 70 virtual void StartPairing() OVERRIDE; |
71 virtual DeviceIdList GetDiscoveredDevices() OVERRIDE; | 71 virtual DeviceIdList GetDiscoveredDevices() OVERRIDE; |
72 virtual void ChooseDeviceForPairing(const std::string& device_id) OVERRIDE; | 72 virtual void ChooseDeviceForPairing(const std::string& device_id) OVERRIDE; |
73 virtual void RepeatDiscovery() OVERRIDE; | 73 virtual void RepeatDiscovery() OVERRIDE; |
74 virtual std::string GetConfirmationCode() OVERRIDE; | 74 virtual std::string GetConfirmationCode() OVERRIDE; |
75 virtual void SetConfirmationCodeIsCorrect(bool correct) OVERRIDE; | 75 virtual void SetConfirmationCodeIsCorrect(bool correct) OVERRIDE; |
76 virtual void OnAuthenticationDone( | 76 virtual void SetHostConfiguration( |
77 const chromeos::UserContext& user_context, | 77 bool accepted_eula, |
78 content::BrowserContext* browser_context) OVERRIDE; | 78 const std::string& lang, |
| 79 const std::string& timezone, |
| 80 bool send_reports, |
| 81 const std::string& keyboard_layout) OVERRIDE; |
| 82 virtual void OnAuthenticationDone(const std::string& domain, |
| 83 const std::string& auth_token) OVERRIDE; |
79 virtual void StartSession() OVERRIDE; | 84 virtual void StartSession() OVERRIDE; |
80 | 85 |
81 private: | 86 private: |
82 void ChangeStage(Stage new_stage); | 87 void ChangeStage(Stage new_stage); |
83 void ChangeStageLater(Stage new_stage); | 88 void ChangeStageLater(Stage new_stage); |
84 void ExecuteDiscoveryEvent(size_t event_position); | 89 void ExecuteDiscoveryEvent(size_t event_position); |
85 void DeviceFound(const std::string& device_id); | 90 void DeviceFound(const std::string& device_id); |
86 void DeviceLost(const std::string& device_id); | 91 void DeviceLost(const std::string& device_id); |
87 | 92 |
88 // Overridden from ui::ControllerPairingController::Observer: | 93 // Overridden from ui::ControllerPairingController::Observer: |
(...skipping 12 matching lines...) Expand all Loading... |
101 Stage connection_lost_begin_; | 106 Stage connection_lost_begin_; |
102 Stage connection_lost_end_; | 107 Stage connection_lost_end_; |
103 bool enrollment_should_fail_; | 108 bool enrollment_should_fail_; |
104 | 109 |
105 DISALLOW_COPY_AND_ASSIGN(FakeControllerPairingController); | 110 DISALLOW_COPY_AND_ASSIGN(FakeControllerPairingController); |
106 }; | 111 }; |
107 | 112 |
108 } // namespace pairing_chromeos | 113 } // namespace pairing_chromeos |
109 | 114 |
110 #endif // COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ | 115 #endif // COMPONENTS_PAIRING_FAKE_CONTROLLER_PAIRING_CONTROLLER_H_ |
OLD | NEW |