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

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

Issue 1865613002: bluetooth: Move read value to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-notifications
Patch Set: Address jyasskin's comments Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5cfb807e5c504e1d977a7ee8df5b621b88a90252..bdd829d20c149f7dd8ee6fdac0c444e22373004f 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -79,6 +79,16 @@ interface WebBluetoothService {
// a device disconnects.
SetClient(associated WebBluetoothServiceClient client);
+ // Reads the value for characteristic with
+ // |characteristic_instance_id|. If the value is successfully read the
+ // callback will be run with WebBluetoothError::SUCCESS and the
+ // characteristic's value. If the value is not successfully read the
+ // callback with be run with the corresponding error and nullptr for value.
+ RemoteCharacteristicReadValue(
+ string characteristic_instance_id) => (
+ WebBluetoothError error,
+ array<uint8>? value);
+
// Writes a value to the characteristic with
// |characteristic_instance_id|. The callback is run with
// WebBluetoothError::SUCCESS if the value was successfully
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/characteristicvaluechanged.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698