Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1192)

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VI Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
index 6e9dae6412c951cf1d9eba2fd8bdc31988a3ab45..2dc39c7b6817ba9240fbcfdb37d8cfffa50d705c 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
@@ -24,17 +24,24 @@ DOMException* BluetoothError::take(ScriptPromiseResolver*, const WebBluetoothErr
MAP_ERROR(CharacteristicNoLongerExists, InvalidStateError, "GATT Characteristic no longer exists.");
// NetworkErrors:
- MAP_ERROR(GATTOperationInProgress, NetworkError, "GATT operation already in progress.");
- MAP_ERROR(GATTNotPaired, NetworkError, "GATT Error: Not paired.");
- MAP_ERROR(DeviceNoLongerInRange, NetworkError, "Bluetooth Device is no longer in range.");
- MAP_ERROR(ConnectUnknownError, NetworkError, "Unknown error when connecting to the device.");
MAP_ERROR(ConnectAlreadyInProgress, NetworkError, "Connection already in progress.");
- MAP_ERROR(ConnectUnknownFailure, NetworkError, "Connection failed for unknown reason.");
- MAP_ERROR(ConnectAuthFailed, NetworkError, "Authentication failed.");
+ MAP_ERROR(ConnectAttributeLengthInvalid, NetworkError, "Write operation exceeds the maximum length of the attribute.");
MAP_ERROR(ConnectAuthCanceled, NetworkError, "Authentication canceled.");
+ MAP_ERROR(ConnectAuthFailed, NetworkError, "Authentication failed.");
MAP_ERROR(ConnectAuthRejected, NetworkError, "Authentication rejected.");
MAP_ERROR(ConnectAuthTimeout, NetworkError, "Authentication timeout.");
+ MAP_ERROR(ConnectConnectionCongested, NetworkError, "Remote device connection is congested.");
+ MAP_ERROR(ConnectInsufficientEncryption, NetworkError, "Insufficient encryption for a given operation");
+ MAP_ERROR(ConnectOffsetInvalid, NetworkError, "Read or write operation was requested with an invalid offset.");
+ MAP_ERROR(ConnectReadNotPermitted, NetworkError, "GATT read operation is not permitted.");
+ MAP_ERROR(ConnectRequestNotSupported, NetworkError, "The given request is not supported.");
+ MAP_ERROR(ConnectUnknownError, NetworkError, "Unknown error when connecting to the device.");
+ MAP_ERROR(ConnectUnknownFailure, NetworkError, "Connection failed for unknown reason.");
MAP_ERROR(ConnectUnsupportedDevice, NetworkError, "Unsupported device.");
+ MAP_ERROR(ConnectWriteNotPermitted, NetworkError, "GATT write operation is not permitted.");
+ MAP_ERROR(DeviceNoLongerInRange, NetworkError, "Bluetooth Device is no longer in range.");
+ MAP_ERROR(GATTNotPaired, NetworkError, "GATT Error: Not paired.");
+ MAP_ERROR(GATTOperationInProgress, NetworkError, "GATT operation already in progress.");
MAP_ERROR(UntranslatedConnectErrorCode, NetworkError, "Unknown ConnectErrorCode.");
// NotFoundErrors:

Powered by Google App Engine
This is Rietveld 408576698