Chromium Code Reviews| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| index 8e989506173e4a1c83b04068bf790a9a1e140bdb..d06cb066e953965088ff9e17c9c81219b27bd8eb 100644 |
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| @@ -11,6 +11,13 @@ |
| namespace blink { |
| +// Used generate DOMExceptions for errors when the device is not connected. |
|
scheib
2017/03/04 19:07:31
Grammar is odd here. Should this be: "Used when ge
ortuno
2017/03/07 04:18:20
Done.
|
| +// TODO(crbug.com/684445): Add DescriptorsRetrieval and GATTOperation. |
| +enum class BluetoothOperation { |
| + ServicesRetrieval, |
| + CharacteristicsRetrieval, |
| +}; |
| + |
| // These error codes requires detailed error messages. |
| enum class BluetoothErrorCode { |
| InvalidService, |
| @@ -29,6 +36,7 @@ class BluetoothError { |
| STATIC_ONLY(BluetoothError); |
| public: |
| + static DOMException* createNotConnectedException(BluetoothOperation); |
| static DOMException* createDOMException(BluetoothErrorCode, |
| const String& detailedMessage); |