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

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

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: run bad_message_reasons 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 148e756e94deb4db78a5fe81ef9a98ff23e6bf84..ed1adc8709d2866a8ee6d0fe22657aa2d9993d2a 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -103,6 +103,7 @@ enum WebBluetoothResult {
REQUEST_DEVICE_WITH_BLOCKLISTED_UUID,
REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME,
REQUEST_DEVICE_WITHOUT_FRAME,
+ DESCRIPTOR_NO_LONGER_EXISTS,
};
struct WebBluetoothScanFilter {
@@ -239,6 +240,16 @@ interface WebBluetoothService {
bluetooth.mojom.UUID? descriptor_uuid) => (
WebBluetoothResult result,
array<WebBluetoothRemoteGATTDescriptor>? descriptors);
+
+ // Reads the value for the descriptor identified by
+ // |descriptor_instance_id|. 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
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTUtils.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698