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

Unified Diff: content/renderer/bluetooth/web_bluetooth_impl.cc

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address jyasskin's comments and add moar tests Created 4 years, 10 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: content/renderer/bluetooth/web_bluetooth_impl.cc
diff --git a/content/renderer/bluetooth/web_bluetooth_impl.cc b/content/renderer/bluetooth/web_bluetooth_impl.cc
index d1384927c0539dc3afa875f73e1c64c0267258d4..2df80b3ad7421d2ef0dc55b3a12fa2c0ff923dba 100644
--- a/content/renderer/bluetooth/web_bluetooth_impl.cc
+++ b/content/renderer/bluetooth/web_bluetooth_impl.cc
@@ -47,10 +47,18 @@ void WebBluetoothImpl::getPrimaryService(
void WebBluetoothImpl::getCharacteristic(
const blink::WebString& service_instance_id,
- const blink::WebString& characteristic_uuid,
+ const blink::WebString& characteristics_uuid,
blink::WebBluetoothGetCharacteristicCallbacks* callbacks) {
GetDispatcher()->getCharacteristic(frame_routing_id_, service_instance_id,
- characteristic_uuid, callbacks);
+ characteristics_uuid, callbacks);
+}
+
+void WebBluetoothImpl::getCharacteristics(
+ const blink::WebString& service_instance_id,
+ const blink::WebString& characteristic_uuid,
+ blink::WebBluetoothGetCharacteristicsCallbacks* callbacks) {
+ GetDispatcher()->getCharacteristics(frame_routing_id_, service_instance_id,
+ characteristic_uuid, callbacks);
}
void WebBluetoothImpl::readValue(

Powered by Google App Engine
This is Rietveld 408576698