| 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..2b87016b2a7d81f19494812b42302687028b54cd 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(
|
| + string characteristic_instance_id,
|
| + array<uint8> value) => (WebBluetoothError error);
|
| +
|
| +};
|
|
|