OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebBluetoothError_h | 5 #ifndef WebBluetoothError_h |
6 #define WebBluetoothError_h | 6 #define WebBluetoothError_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 // Errors that can occur during Web Bluetooth execution, which are transformed | 10 // Errors that can occur during Web Bluetooth execution, which are transformed |
11 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. | 11 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. |
12 // | 12 // |
13 // These errors all produce constant message strings. If a particular message | 13 // These errors all produce constant message strings. If a particular message |
14 // needs a dynamic component, we should add a separate enum so type-checking the IPC | 14 // needs a dynamic component, we should add a separate enum so type-checking the IPC |
15 // ensures the dynamic component is passed. | 15 // ensures the dynamic component is passed. |
16 enum class WebBluetoothError { | 16 enum class WebBluetoothError { |
Jeffrey Yasskin
2016/03/25 00:48:24
Try to move all of these to the .mojom at once by
ortuno
2016/03/29 17:58:34
Done in http://crrev.com/1837253002
| |
17 // AbortError: | 17 // AbortError: |
18 // InvalidModificationError: | 18 // InvalidModificationError: |
19 GATTInvalidAttributeLength, | 19 GATTInvalidAttributeLength, |
20 // InvalidStateError: | 20 // InvalidStateError: |
21 ServiceNoLongerExists, | 21 ServiceNoLongerExists, |
22 CharacteristicNoLongerExists, | 22 CharacteristicNoLongerExists, |
23 // NetworkError: | 23 // NetworkError: |
24 ConnectAlreadyInProgress, | 24 ConnectAlreadyInProgress, |
25 ConnectAttributeLengthInvalid, | 25 ConnectAttributeLengthInvalid, |
26 ConnectAuthCanceled, | 26 ConnectAuthCanceled, |
(...skipping 25 matching lines...) Expand all Loading... | |
52 // NotSupportedError: | 52 // NotSupportedError: |
53 GATTUnknownError, | 53 GATTUnknownError, |
54 GATTUnknownFailure, | 54 GATTUnknownFailure, |
55 GATTNotPermitted, | 55 GATTNotPermitted, |
56 GATTNotSupported, | 56 GATTNotSupported, |
57 GATTUntranslatedErrorCode, | 57 GATTUntranslatedErrorCode, |
58 // SecurityError: | 58 // SecurityError: |
59 GATTNotAuthorized, | 59 GATTNotAuthorized, |
60 BlacklistedCharacteristicUUID, | 60 BlacklistedCharacteristicUUID, |
61 BlacklistedRead, | 61 BlacklistedRead, |
62 BlacklistedWrite, | |
63 NotAllowedToAccessService, | 62 NotAllowedToAccessService, |
64 RequestDeviceWithBlacklistedUUID, | 63 RequestDeviceWithBlacklistedUUID, |
65 RequestDeviceWithUniqueOrigin, | 64 RequestDeviceWithUniqueOrigin, |
66 RequestDeviceWithoutFrame, | 65 RequestDeviceWithoutFrame, |
67 // SyntaxError: | 66 // SyntaxError: |
68 | 67 |
69 ENUM_MAX_VALUE = RequestDeviceWithoutFrame, | 68 ENUM_MAX_VALUE = RequestDeviceWithoutFrame, |
70 }; | 69 }; |
71 | 70 |
72 } // namespace blink | 71 } // namespace blink |
73 | 72 |
74 #endif // WebBluetoothError_h | 73 #endif // WebBluetoothError_h |
OLD | NEW |