| 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 Bluetooth_h | 5 #ifndef Bluetooth_h |
| 6 #define Bluetooth_h | 6 #define Bluetooth_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "modules/bluetooth/BluetoothDevice.h" | 10 #include "modules/bluetooth/BluetoothDevice.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 void dispose(); | 32 void dispose(); |
| 33 | 33 |
| 34 // BluetoothDiscovery interface | 34 // BluetoothDiscovery interface |
| 35 ScriptPromise requestDevice(ScriptState*, | 35 ScriptPromise requestDevice(ScriptState*, |
| 36 const RequestDeviceOptions&, | 36 const RequestDeviceOptions&, |
| 37 ExceptionState&); | 37 ExceptionState&); |
| 38 | 38 |
| 39 mojom::blink::WebBluetoothService* service() { return m_service.get(); } | 39 mojom::blink::WebBluetoothService* service() { return m_service.get(); } |
| 40 | 40 |
| 41 void addDevice(const String& deviceId, BluetoothDevice*); | 41 void addToConnectedDevicesMap(const String& deviceId, BluetoothDevice*); |
| 42 | 42 |
| 43 void removeDevice(const String& deviceId); | 43 void removeFromConnectedDevicesMap(const String& deviceId); |
| 44 | 44 |
| 45 void registerCharacteristicObject(const String& characteristicInstanceId, | 45 void registerCharacteristicObject(const String& characteristicInstanceId, |
| 46 BluetoothRemoteGATTCharacteristic*); | 46 BluetoothRemoteGATTCharacteristic*); |
| 47 void characteristicObjectRemoved(const String& characteristicInstanceId); | 47 void characteristicObjectRemoved(const String& characteristicInstanceId); |
| 48 | 48 |
| 49 // Interface required by Garbage Collection: | 49 // Interface required by Garbage Collection: |
| 50 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 Bluetooth(); | 53 Bluetooth(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 mojom::blink::WebBluetoothServicePtr m_service; | 87 mojom::blink::WebBluetoothServicePtr m_service; |
| 88 | 88 |
| 89 // Binding associated with |m_service|. | 89 // Binding associated with |m_service|. |
| 90 mojo::AssociatedBinding<mojom::blink::WebBluetoothServiceClient> | 90 mojo::AssociatedBinding<mojom::blink::WebBluetoothServiceClient> |
| 91 m_clientBinding; | 91 m_clientBinding; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // Bluetooth_h | 96 #endif // Bluetooth_h |
| OLD | NEW |