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

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

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address scheib's comments Created 4 years, 9 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 | « content/renderer/render_frame_impl.cc ('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 b94a0fb29cc5dbf4d17a1f3d90de4b3006d9e172..87690ee39369fd5b3df175cb936a1443b811f70f 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -1,6 +1,7 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
module blink.mojom;
// Errors that can occur during Web Bluetooth execution, which are transformed
@@ -68,3 +69,17 @@ enum WebBluetoothError {
// TODO(ortuno): Define Bluetooth Service.
// https://crbug.com/508771
+
+// Web Bluetooth Interface that Blink can use to perform
+// Bluetooth GATT Operations on Bluetooth Devices.
+interface WebBluetoothService {
+
+ // Writes a value to the characteristic with
+ // |characteristic_instance_id|. The callback is run with
+ // WebBluetoothError::SUCCESS if the value was successfully
+ // written.
+ RemoteCharacteristicWriteValue(
+ string characteristic_instance_id,
+ array<uint8> value) => (WebBluetoothError error);
+
+};
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698