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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: #1 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/public/platform/modules/bluetooth/web_bluetooth.mojom
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
index ecacfdb945c0b1af77877dba8cfed1a6700d2316..ecd821f7ccdecce6be74a86ea2c54fbbd76255af 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -72,6 +72,7 @@ enum WebBluetoothResult {
REQUEST_DEVICE_WITH_BLOCKLISTED_UUID,
REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME,
REQUEST_DEVICE_WITHOUT_FRAME,
+ DESCRIPTOR_NO_LONGER_EXISTS,
};
struct WebBluetoothScanFilter {
@@ -198,6 +199,16 @@ interface WebBluetoothService {
bluetooth.mojom.UUID? descriptor_uuid) => (
WebBluetoothResult result,
array<WebBluetoothRemoteGATTDescriptor>? descriptors);
+
+ // Reads the value for descriptor with |descriptor_instance_id|.
scheib 2017/01/19 06:16:18 See comment style template change in tip of tree,
dougt 2017/01/20 03:17:24 Done.
+ // If the value is successfully read the callback will be run with
+ // WebBluetoothResult::SUCCESS and the descriptor's value. If the value is not
+ // successfully read the callback with be run with the corresponding error and
+ // nullptr for value.
+ RemoteDescriptorReadValue(
+ string descriptor_instance_id) => (
+ WebBluetoothResult result,
+ array<uint8>? value);
};
// Classes should implement this interface and pass an associated pointer

Powered by Google App Engine
This is Rietveld 408576698