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); |
+ |
+}; |