| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h
|
| index b491c1d9860d87043a1fdb276d5202f47223535a..175db616cecd6b36d77be7f651aeab298e4dcc02 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h
|
| @@ -9,6 +9,7 @@
|
| #include "core/dom/DOMArrayPiece.h"
|
| #include "core/dom/DOMDataView.h"
|
| #include "modules/EventTargetModules.h"
|
| +#include "modules/bluetooth/Bluetooth.h"
|
| #include "modules/bluetooth/BluetoothRemoteGATTCharacteristic.h"
|
| #include "modules/bluetooth/BluetoothRemoteGATTService.h"
|
| #include "platform/heap/Handle.h"
|
| @@ -54,11 +55,18 @@ class BluetoothRemoteGATTDescriptor final
|
| friend class DescriptorReadValueCallback;
|
|
|
| BluetoothRemoteGATTServer* getGatt() { return m_characteristic->getGatt(); }
|
| + mojom::blink::WebBluetoothService* getService() {
|
| + return m_characteristic->m_device->bluetooth()->service();
|
| + }
|
|
|
| void ReadValueCallback(ScriptPromiseResolver*,
|
| mojom::blink::WebBluetoothResult,
|
| const Optional<Vector<uint8_t>>&);
|
|
|
| + void WriteValueCallback(ScriptPromiseResolver*,
|
| + const Vector<uint8_t>&,
|
| + mojom::blink::WebBluetoothResult);
|
| +
|
| mojom::blink::WebBluetoothRemoteGATTDescriptorPtr m_descriptor;
|
| Member<BluetoothRemoteGATTCharacteristic> m_characteristic;
|
| Member<DOMDataView> m_value;
|
|
|