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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 ConnectUnknownError, | 27 ConnectUnknownError, |
28 ConnectAlreadyInProgress, | 28 ConnectAlreadyInProgress, |
29 ConnectUnknownFailure, | 29 ConnectUnknownFailure, |
30 ConnectAuthFailed, | 30 ConnectAuthFailed, |
31 ConnectAuthCanceled, | 31 ConnectAuthCanceled, |
32 ConnectAuthRejected, | 32 ConnectAuthRejected, |
33 ConnectAuthTimeout, | 33 ConnectAuthTimeout, |
34 ConnectUnsupportedDevice, | 34 ConnectUnsupportedDevice, |
35 UntranslatedConnectErrorCode, | 35 UntranslatedConnectErrorCode, |
36 // NotFoundError: | 36 // NotFoundError: |
37 BluetoothAdapterOff, | |
38 NoBluetoothAdapter, | 37 NoBluetoothAdapter, |
39 NoBluetoothChooser, | |
40 DiscoverySessionStartFailed, | |
41 DiscoverySessionStopFailed, | |
42 NoDevicesFound, | |
43 ChosenDeviceVanished, | 38 ChosenDeviceVanished, |
44 ChooserCancelled, | 39 ChooserCancelled, |
45 ServiceNotFound, | 40 ServiceNotFound, |
46 CharacteristicNotFound, | 41 CharacteristicNotFound, |
47 // NotSupportedError: | 42 // NotSupportedError: |
48 GATTUnknownError, | 43 GATTUnknownError, |
49 GATTUnknownFailure, | 44 GATTUnknownFailure, |
50 GATTNotPermitted, | 45 GATTNotPermitted, |
51 GATTNotSupported, | 46 GATTNotSupported, |
52 GATTUntranslatedErrorCode, | 47 GATTUntranslatedErrorCode, |
53 // SecurityError: | 48 // SecurityError: |
54 GATTNotAuthorized, | 49 GATTNotAuthorized, |
55 RequestDeviceWithoutFrame, | 50 RequestDeviceWithoutFrame, |
56 // SyntaxError: | 51 // SyntaxError: |
57 | 52 |
58 ENUM_MAX_VALUE = GATTNotAuthorized, | 53 ENUM_MAX_VALUE = GATTNotAuthorized, |
59 }; | 54 }; |
60 | 55 |
61 } // namespace blink | 56 } // namespace blink |
62 | 57 |
63 #endif // WebBluetoothError_h | 58 #endif // WebBluetoothError_h |
OLD | NEW |