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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError.h

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VI Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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 {
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 GATTOperationInProgress,
25 GATTNotPaired,
26 DeviceNoLongerInRange,
27 ConnectUnknownError,
28 ConnectAlreadyInProgress, 24 ConnectAlreadyInProgress,
29 ConnectUnknownFailure, 25 ConnectAttributeLengthInvalid,
26 ConnectAuthCanceled,
30 ConnectAuthFailed, 27 ConnectAuthFailed,
31 ConnectAuthCanceled,
32 ConnectAuthRejected, 28 ConnectAuthRejected,
33 ConnectAuthTimeout, 29 ConnectAuthTimeout,
30 ConnectConnectionCongested,
31 ConnectInsufficientEncryption,
32 ConnectOffsetInvalid,
33 ConnectReadNotPermitted,
34 ConnectRequestNotSupported,
35 ConnectUnknownError,
36 ConnectUnknownFailure,
34 ConnectUnsupportedDevice, 37 ConnectUnsupportedDevice,
38 ConnectWriteNotPermitted,
39 DeviceNoLongerInRange,
40 GATTNotPaired,
41 GATTOperationInProgress,
35 UntranslatedConnectErrorCode, 42 UntranslatedConnectErrorCode,
36 // NotFoundError: 43 // NotFoundError:
37 NoBluetoothAdapter, 44 NoBluetoothAdapter,
38 ChosenDeviceVanished, 45 ChosenDeviceVanished,
39 ChooserCancelled, 46 ChooserCancelled,
40 ChooserDeniedPermission, 47 ChooserDeniedPermission,
41 ServiceNotFound, 48 ServiceNotFound,
42 CharacteristicNotFound, 49 CharacteristicNotFound,
43 // NotSupportedError: 50 // NotSupportedError:
44 GATTUnknownError, 51 GATTUnknownError,
45 GATTUnknownFailure, 52 GATTUnknownFailure,
46 GATTNotPermitted, 53 GATTNotPermitted,
47 GATTNotSupported, 54 GATTNotSupported,
48 GATTUntranslatedErrorCode, 55 GATTUntranslatedErrorCode,
49 // SecurityError: 56 // SecurityError:
50 GATTNotAuthorized, 57 GATTNotAuthorized,
51 RequestDeviceWithoutFrame, 58 RequestDeviceWithoutFrame,
52 // SyntaxError: 59 // SyntaxError:
53 60
54 ENUM_MAX_VALUE = GATTNotAuthorized, 61 ENUM_MAX_VALUE = GATTNotAuthorized,
55 }; 62 };
56 63
57 } // namespace blink 64 } // namespace blink
58 65
59 #endif // WebBluetoothError_h 66 #endif // WebBluetoothError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698