Chromium Code Reviews| 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 { |
|
scheib
2016/03/31 04:17:51
In person we discussed and I thought you said the
ortuno
2016/03/31 16:56:44
Yes. That's the long term plan. Since that + mojo
|
| + |
| + // 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); |
|
scheib
2016/03/31 04:17:51
error -> result
ortuno
2016/03/31 16:56:44
Will do in http://crbug.com/599489
|
| + |
| +}; |