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

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: III Created 5 years 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:
scheib 2015/11/26 00:02:51 Sort the NetworkError: block.
Kai Jiang 2015/11/29 10:40:52 Done.
24 GATTOperationInProgress, 24 GATTOperationInProgress,
25 GATTNotPaired, 25 GATTNotPaired,
26 DeviceNoLongerInRange, 26 DeviceNoLongerInRange,
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 ConnectAttributeLengthInvalid,
36 ConnectConnectionCongested,
37 ConnectInsufficientEncryption,
38 ConnectOffsetInvalid,
39 ConnectReadFailed,
scheib 2015/11/26 00:02:51 ConnectReadNotPermitted
40 ConnectRequestNotSupported,
41 ConnectWriteFailed,
scheib 2015/11/26 00:02:51 ConnectWriteNotPermitted
Kai Jiang 2015/11/29 10:40:52 Done.
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