| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
|
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
|
| index 1d05437af4be7cc489986f66d2ce4eafd6a57129..505af709ab8f628d5dd1dcae4e780bc00cab5d06 100644
|
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
|
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h
|
| @@ -80,6 +80,13 @@ class BluetoothRemoteGATTCharacteristic final
|
| String uuid() { return m_characteristic->uuid; }
|
| BluetoothCharacteristicProperties* properties() { return m_properties; }
|
| DOMDataView* value() const { return m_value; }
|
| + ScriptPromise getDescriptor(ScriptState*,
|
| + const StringOrUnsignedLong& descriptor,
|
| + ExceptionState&);
|
| + ScriptPromise getDescriptors(ScriptState*, ExceptionState&);
|
| + ScriptPromise getDescriptors(ScriptState*,
|
| + const StringOrUnsignedLong& descriptor,
|
| + ExceptionState&);
|
| ScriptPromise readValue(ScriptState*);
|
| ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&);
|
| ScriptPromise startNotifications(ScriptState*);
|
| @@ -93,6 +100,8 @@ class BluetoothRemoteGATTCharacteristic final
|
| RegisteredEventListener&) override;
|
|
|
| private:
|
| + friend class BluetoothRemoteGATTDescriptor;
|
| +
|
| BluetoothRemoteGATTServer* gatt() { return m_service->device()->gatt(); }
|
|
|
| void ReadValueCallback(ScriptPromiseResolver*,
|
| @@ -104,6 +113,18 @@ class BluetoothRemoteGATTCharacteristic final
|
| void NotificationsCallback(ScriptPromiseResolver*,
|
| mojom::blink::WebBluetoothResult);
|
|
|
| + ScriptPromise getDescriptorsImpl(ScriptState*,
|
| + mojom::blink::WebBluetoothGATTQueryQuantity,
|
| + const String& descriptorUUID = String());
|
| +
|
| + void GetDescriptorsCallback(
|
| + const String& characteristicInstanceId,
|
| + mojom::blink::WebBluetoothGATTQueryQuantity,
|
| + ScriptPromiseResolver*,
|
| + mojom::blink::WebBluetoothResult,
|
| + Optional<Vector<mojom::blink::WebBluetoothRemoteGATTDescriptorPtr>>
|
| + descriptors);
|
| +
|
| mojom::blink::WebBluetoothRemoteGATTCharacteristicPtr m_characteristic;
|
| Member<BluetoothRemoteGATTService> m_service;
|
| bool m_stopped;
|
|
|