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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Merge with ToT 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: third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
index 090e5c657e3618cb4935332bb6762228400eaaa8..b6352ab5f8ad4d1e5fc570d6dd340b89d618fc23 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
+++ b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
@@ -32,6 +32,10 @@ using WebBluetoothGetPrimaryServiceCallbacks = WebCallbacks<WebPassOwnPtr<WebBlu
// Success and failure callbacks for getCharacteristic.
using WebBluetoothGetCharacteristicCallbacks = WebCallbacks<WebPassOwnPtr<WebBluetoothRemoteGATTCharacteristicInit>, const WebBluetoothError&>;
+// Success and failure callbacks for getCharacteristics.
+using WebBluetoothGetCharacteristicsCallbacks =
+ WebCallbacks<WebPassOwnPtr<WebVector<WebBluetoothRemoteGATTCharacteristicInit*>>, const WebBluetoothError&>;
+
// Success and failure callbacks for readValue.
using WebBluetoothReadValueCallbacks = WebCallbacks<const WebVector<uint8_t>&, const WebBluetoothError&>;
@@ -68,6 +72,9 @@ public:
virtual void getCharacteristic(const WebString& serviceInstanceID,
const WebString& characteristicUUID,
WebBluetoothGetCharacteristicCallbacks*) { }
+ virtual void getCharacteristics(const WebString& serviceInstanceID,
+ const WebString& characteristicsUUID,
+ WebBluetoothGetCharacteristicsCallbacks*) = 0;
// BluetoothRemoteGATTCharacteristic methods:
// See https://webbluetoothchrome.github.io/web-bluetooth/#bluetoothgattcharacteristic

Powered by Google App Engine
This is Rietveld 408576698