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 6645ef8cf09075579691cc21c6164060d25af250..b2a5e35e4bdc1dbfb12ce856363c22611fe46701 100644 |
| --- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom |
| +++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom |
| @@ -1,11 +1,38 @@ |
| // 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; |
| enum WebBluetoothError { |
| - SUCCESS |
| + SUCCESS, |
| + // InvalidModificationError: |
| + GATT_INVALID_ATTRIBUTE_LENGTH, |
| + // InvalidStateError: |
| + SERVICE_NO_LONGER_EXISTS, |
| + CHARACTERISTIC_NO_LONGER_EXISTS, |
| + // NetworkError: |
| + DEVICE_NO_LONGER_IN_RANGE, |
| + GATT_NOT_PAIRED, |
| + GATT_OPERATION_IN_PROGRESS, |
| + // NotSupportedError: |
| + GATT_UNKNOWN_ERROR, |
| + GATT_UNKNOWN_FAILURE, |
| + GATT_NOT_PERMITTED, |
| + GATT_NOT_SUPPORTED, |
| + GATT_UNTRANSLATED_ERROR_CODE, |
| + // SecurityError: |
| + GATT_NOT_AUTHORIZED, |
| + BLACKLISTED_WRITE |
| }; |
| // TODO(ortuno): Define Bluetooth Service. |
| // https://crbug.com/508771 |
| + |
| +interface WebBluetoothService { |
| + |
| + RemoteCharacteristicWriteValue( |
|
Jeffrey Yasskin
2016/03/25 00:48:24
Comment what this does.
ortuno
2016/03/29 17:58:34
Done.
|
| + string characteristic_instance_id, |
| + array<uint8> value) => (WebBluetoothError error); |
| + |
| +}; |