| 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 void TryPairingAsPointingDevice(device::BluetoothDevice* device); | 153 void TryPairingAsPointingDevice(device::BluetoothDevice* device); |
| 154 | 154 |
| 155 // Tries to connect given BT device as keyboard. | 155 // Tries to connect given BT device as keyboard. |
| 156 void TryPairingAsKeyboardDevice(device::BluetoothDevice* device); | 156 void TryPairingAsKeyboardDevice(device::BluetoothDevice* device); |
| 157 | 157 |
| 158 // Tries to connect given BT device. | 158 // Tries to connect given BT device. |
| 159 void ConnectBTDevice(device::BluetoothDevice* device); | 159 void ConnectBTDevice(device::BluetoothDevice* device); |
| 160 | 160 |
| 161 // Called by device::BluetoothDevice on a successful pairing and connection | 161 // Called by device::BluetoothDevice on a successful pairing and connection |
| 162 // to a device. | 162 // to a device. |
| 163 void BTConnected(device::BluetoothDevice::DeviceType device_type); | 163 void BTConnected(device::BluetoothDeviceType device_type); |
| 164 | 164 |
| 165 // Called by device::BluetoothDevice in response to a failure to | 165 // Called by device::BluetoothDevice in response to a failure to |
| 166 // connect to the device with bluetooth address |address| due to an error | 166 // connect to the device with bluetooth address |address| due to an error |
| 167 // encoded in |error_code|. | 167 // encoded in |error_code|. |
| 168 void BTConnectError(const std::string& address, | 168 void BTConnectError(const std::string& address, |
| 169 device::BluetoothDevice::DeviceType device_type, | 169 device::BluetoothDeviceType device_type, |
| 170 device::BluetoothDevice::ConnectErrorCode error_code); | 170 device::BluetoothDevice::ConnectErrorCode error_code); |
| 171 | 171 |
| 172 // Sends a notification to the Web UI of the status of available Bluetooth/USB | 172 // Sends a notification to the Web UI of the status of available Bluetooth/USB |
| 173 // pointing device. | 173 // pointing device. |
| 174 void SendPointingDeviceNotification(); | 174 void SendPointingDeviceNotification(); |
| 175 | 175 |
| 176 // Sends a notification to the Web UI of the status of available Bluetooth/USB | 176 // Sends a notification to the Web UI of the status of available Bluetooth/USB |
| 177 // keyboard device. | 177 // keyboard device. |
| 178 void SendKeyboardDeviceNotification(); | 178 void SendKeyboardDeviceNotification(); |
| 179 | 179 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 bool showing_; | 211 bool showing_; |
| 212 | 212 |
| 213 base::WeakPtrFactory<HIDDetectionScreen> weak_ptr_factory_; | 213 base::WeakPtrFactory<HIDDetectionScreen> weak_ptr_factory_; |
| 214 | 214 |
| 215 DISALLOW_COPY_AND_ASSIGN(HIDDetectionScreen); | 215 DISALLOW_COPY_AND_ASSIGN(HIDDetectionScreen); |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace chromeos | 218 } // namespace chromeos |
| 219 | 219 |
| 220 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_H_ | 220 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_SCREEN_H_ |
| OLD | NEW |