| 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 fd0664ce5825e447cfbe4b9d1c413d6e643fef5d..b8961ce2ef68fa187a4121d0596aef2ad7311616 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_webCharacteristic->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,12 +100,18 @@ class BluetoothRemoteGATTCharacteristic final
|
| RegisteredEventListener&) override;
|
|
|
| private:
|
| - friend class ReadValueCallback;
|
| - friend class WriteValueCallback;
|
| + friend class CharacteristicReadValueCallback;
|
| + friend class CharacteristicWriteValueCallback;
|
| friend class NotificationsCallback;
|
| + friend class GetDescriptorsCallback;
|
| + friend class BluetoothRemoteGATTDescriptor;
|
|
|
| BluetoothRemoteGATTServer* gatt() { return m_service->device()->gatt(); }
|
|
|
| + ScriptPromise getDescriptorsImpl(ScriptState*,
|
| + mojom::blink::WebBluetoothGATTQueryQuantity,
|
| + const String& descriptorUUID = String());
|
| +
|
| std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit> m_webCharacteristic;
|
| Member<BluetoothRemoteGATTService> m_service;
|
| bool m_stopped;
|
|
|