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

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: III Created 5 years, 1 month 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 3c3374a062f86334a8f3e2ebc23cafc37cac2a63..a3f600a3c8d3085164e8469a09da522704f15b83 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp
@@ -36,6 +36,13 @@ DOMException* BluetoothError::take(ScriptPromiseResolver*, const WebBluetoothErr
MAP_ERROR(ConnectAuthRejected, NetworkError, "Authentication rejected.");
MAP_ERROR(ConnectAuthTimeout, NetworkError, "Authentication timeout.");
MAP_ERROR(ConnectUnsupportedDevice, NetworkError, "Unsupported device.");
+ MAP_ERROR(ConnectAttributeLengthInvalid, NetworkError, "Write operation exceeds the maximum length of the attribute.");
scheib 2015/11/26 00:02:51 Sort alphabetically all NetworkError items.
Kai Jiang 2015/11/29 10:40:52 Done.
+ 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(ConnectReadFailed, NetworkError, "GATT read operation is not permitted.");
scheib 2015/11/26 00:02:51 ConnectReadNotPermitted
Kai Jiang 2015/11/29 10:40:52 Done.
+ MAP_ERROR(ConnectRequestNotSupported, NetworkError, "The given request is not supported.");
+ MAP_ERROR(ConnectWriteFailed, NetworkError, "GATT write operation is not permitted.");
scheib 2015/11/26 00:02:51 ConnectWriteNotPermitted
Kai Jiang 2015/11/29 10:40:52 Done.
MAP_ERROR(UntranslatedConnectErrorCode, NetworkError, "Unknown ConnectErrorCode.");
// NotFoundErrors:

Powered by Google App Engine
This is Rietveld 408576698