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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 2680783002: bluetooth: show better error messages for services, characteristics and descriptors (Closed)
Patch Set: Added UUID to DESCRIPTOR_NOT_FOUND, INVALID_DESCRIPTOR and INVALID_CHARACTERISTIC. Created 3 years, 10 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/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 43ac52f4eb03240f67985e71cd4592ad660db64d..e1e2c1202e915c5b42d39da3e3d428dea116cfd5 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -51,6 +51,9 @@ enum WebBluetoothResult {
// InvalidStateError:
SERVICE_NO_LONGER_EXISTS,
CHARACTERISTIC_NO_LONGER_EXISTS,
+ INVALID_CHARACTERISTIC,
+ INVALID_DESCRIPTOR,
+ INVALID_SERVICE,
// NetworkError:
CONNECT_ALREADY_IN_PROGRESS,
CONNECT_ATTRIBUTE_LENGTH_INVALID,
@@ -70,6 +73,10 @@ enum WebBluetoothResult {
DEVICE_NO_LONGER_IN_RANGE,
GATT_NOT_PAIRED,
GATT_OPERATION_IN_PROGRESS,
+ GATT_SERVER_DISCONNECTED,
+ GATT_SERVER_NOT_CONNECTED,
+ GATT_SERVER_DISCONNECTED_WHILE_RETRIEVING_CHARACTERISTICS,
+ GATT_SERVER_NOT_CONNECTED_CANNOT_RETRIEVE_CHARACTERISTICS,
UNTRANSLATED_CONNECT_ERROR_CODE,
// NotFoundError:
NO_BLUETOOTH_ADAPTER,

Powered by Google App Engine
This is Rietveld 408576698