Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: #2 Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 6a2fc29b1857d5198a7e4a714c80e6d60980b003..709131730a81fddebba36b23ba1b37585cd8895d 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.h
@@ -47,6 +47,9 @@ class BluetoothRemoteGATTDescriptor final
ScriptPromise readValue(ScriptState*);
ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&);
+ // Save value.
+ void setValue(DOMDataView*);
+
// Interface required by garbage collection.
DECLARE_VIRTUAL_TRACE();
@@ -55,6 +58,10 @@ class BluetoothRemoteGATTDescriptor final
BluetoothRemoteGATTServer* getGatt() { return m_characteristic->getGatt(); }
+ void ReadValueCallback(ScriptPromiseResolver*,
+ mojom::blink::WebBluetoothResult,
+ const Optional<Vector<uint8_t>>&);
+
mojom::blink::WebBluetoothRemoteGATTDescriptorPtr m_descriptor;
Member<BluetoothRemoteGATTCharacteristic> m_characteristic;
Member<DOMDataView> m_value;

Powered by Google App Engine
This is Rietveld 408576698