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

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

Issue 1293593003: Add errors for various chooser failure modes, and remove assertions that are about to change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Sync Created 5 years, 3 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
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 18 matching lines...) Expand all
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, 37 BluetoothAdapterOff,
38 NoBluetoothAdapter, 38 NoBluetoothAdapter,
39 NoBluetoothChooser,
39 DiscoverySessionStartFailed, 40 DiscoverySessionStartFailed,
40 DiscoverySessionStopFailed, 41 DiscoverySessionStopFailed,
41 NoDevicesFound, 42 NoDevicesFound,
43 ChosenDeviceVanished,
44 ChooserCancelled,
42 ServiceNotFound, 45 ServiceNotFound,
43 CharacteristicNotFound, 46 CharacteristicNotFound,
44 // NotSupportedError: 47 // NotSupportedError:
45 GATTUnknownError, 48 GATTUnknownError,
46 GATTUnknownFailure, 49 GATTUnknownFailure,
47 GATTNotPermitted, 50 GATTNotPermitted,
48 GATTNotSupported, 51 GATTNotSupported,
49 GATTUntranslatedErrorCode, 52 GATTUntranslatedErrorCode,
50 // SecurityError: 53 // SecurityError:
51 GATTNotAuthorized, 54 GATTNotAuthorized,
52 RequestDeviceWithoutFrame, 55 RequestDeviceWithoutFrame,
53 // SyntaxError: 56 // SyntaxError:
54 57
55 ENUM_MAX_VALUE = GATTNotAuthorized, 58 ENUM_MAX_VALUE = GATTNotAuthorized,
56 }; 59 };
57 60
58 } // namespace blink 61 } // namespace blink
59 62
60 #endif // WebBluetoothError_h 63 #endif // WebBluetoothError_h
OLDNEW
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698