| 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..b94a0fb29cc5dbf4d17a1f3d90de4b3006d9e172 100644
|
| --- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
|
| +++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
|
| @@ -3,8 +3,67 @@
|
| // found in the LICENSE file.
|
| module blink.mojom;
|
|
|
| +// Errors that can occur during Web Bluetooth execution, which are transformed
|
| +// to a DOMException in Source/modules/bluetooth/BluetoothError.cpp.
|
| +//
|
| +// These errors all produce constant message strings. If a particular message
|
| +// needs a dynamic component, we should add a separate enum so type-checking the
|
| +// IPC ensures the dynamic component is passed.
|
| enum WebBluetoothError {
|
| - SUCCESS
|
| + SUCCESS,
|
| + // AbortError:
|
| + // InvalidModificationError:
|
| + GATT_INVALID_ATTRIBUTE_LENGTH,
|
| + // InvalidStateError:
|
| + SERVICE_NO_LONGER_EXISTS,
|
| + CHARACTERISTIC_NO_LONGER_EXISTS,
|
| + // NetworkError:
|
| + CONNECT_ALREADY_IN_PROGRESS,
|
| + CONNECT_ATTRIBUTE_LENGTH_INVALID,
|
| + CONNECT_AUTH_CANCELED,
|
| + CONNECT_AUTH_FAILED,
|
| + CONNECT_AUTH_REJECTED,
|
| + CONNECT_AUTH_TIMEOUT,
|
| + CONNECT_CONNECTION_CONGESTED,
|
| + CONNECT_INSUFFICIENT_ENCRYPTION,
|
| + CONNECT_OFFSET_INVALID,
|
| + CONNECT_READ_NOT_PERMITTED,
|
| + CONNECT_REQUEST_NOT_SUPPORTED,
|
| + CONNECT_UNKNOWN_ERROR,
|
| + CONNECT_UNKNOWN_FAILURE,
|
| + CONNECT_UNSUPPORTED_DEVICE,
|
| + CONNECT_WRITE_NOT_PERMITTED,
|
| + DEVICE_NO_LONGER_IN_RANGE,
|
| + GATT_NOT_PAIRED,
|
| + GATT_OPERATION_IN_PROGRESS,
|
| + UNTRANSLATED_CONNECT_ERROR_CODE,
|
| + // NotFoundError:
|
| + NO_BLUETOOTH_ADAPTER,
|
| + CHOSEN_DEVICE_VANISHED,
|
| + CHOOSER_CANCELLED,
|
| + CHOOSER_DISABLED,
|
| + CHOOSER_DENIED_PERMISSION,
|
| + SERVICE_NOT_FOUND,
|
| + CHARACTERISTIC_NOT_FOUND,
|
| + NO_CHARACTERISTICS_FOUND,
|
| + // NotSupportedError:
|
| + GATT_UNKNOWN_ERROR,
|
| + GATT_UNKNOWN_FAILURE,
|
| + GATT_NOT_PERMITTED,
|
| + GATT_NOT_SUPPORTED,
|
| + GATT_UNTRANSLATED_ERROR_CODE,
|
| + // SecurityError:
|
| + GATT_NOT_AUTHORIZED,
|
| + BLACKLISTED_CHARACTERISTIC_UUID,
|
| + BLACKLISTED_READ,
|
| + BLACKLISTED_WRITE,
|
| + NOT_ALLOWED_TO_ACCESS_SERVICE,
|
| + REQUEST_DEVICE_WITH_BLACKLISTED_UUID,
|
| + REQUEST_DEVICE_WITH_UNIQUE_ORIGIN,
|
| + REQUEST_DEVICE_WITHOUT_FRAME,
|
| + // SyntaxError:
|
| + // TODO(ortuno): Remove once we no longer use IPC.
|
| + ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME,
|
| };
|
|
|
| // TODO(ortuno): Define Bluetooth Service.
|
|
|