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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp

Issue 2466223002: Implement WebBluetooth getDescriptor[s] (Closed)
Patch Set: Implement WebBluetooth getDescriptor[s] 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/BluetoothDevice.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
index a39f9536affcd882bf87360bb71ebee7769a3ed2..7485033fa7b51380574ee98eb9e53c1e81923293 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp
@@ -63,6 +63,14 @@ bool BluetoothDevice::isValidCharacteristic(
characteristicInstanceId);
}
+BluetoothRemoteGATTDescriptor*
+BluetoothDevice::getOrCreateBluetoothRemoteGATTDescriptor(
+ mojom::blink::WebBluetoothRemoteGATTDescriptorPtr descriptor,
+ BluetoothRemoteGATTCharacteristic* characteristic) {
+ return m_attributeInstanceMap->getOrCreateBluetoothRemoteGATTDescriptor(
+ std::move(descriptor), characteristic);
+}
+
void BluetoothDevice::dispose() {
disconnectGATTIfConnected();
}

Powered by Google App Engine
This is Rietveld 408576698