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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 1841763002: Add a kill switch for all of Web Bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Sync and rename an enum value. Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module blink.mojom; 4 module blink.mojom;
5 5
6 // Errors that can occur during Web Bluetooth execution, which are transformed 6 // Errors that can occur during Web Bluetooth execution, which are transformed
7 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. 7 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp.
8 // 8 //
9 // These errors all produce constant message strings. If a particular message 9 // These errors all produce constant message strings. If a particular message
10 // needs a dynamic component, we should add a separate enum so type-checking the 10 // needs a dynamic component, we should add a separate enum so type-checking the
(...skipping 23 matching lines...) Expand all
34 CONNECT_UNSUPPORTED_DEVICE, 34 CONNECT_UNSUPPORTED_DEVICE,
35 CONNECT_WRITE_NOT_PERMITTED, 35 CONNECT_WRITE_NOT_PERMITTED,
36 DEVICE_NO_LONGER_IN_RANGE, 36 DEVICE_NO_LONGER_IN_RANGE,
37 GATT_NOT_PAIRED, 37 GATT_NOT_PAIRED,
38 GATT_OPERATION_IN_PROGRESS, 38 GATT_OPERATION_IN_PROGRESS,
39 UNTRANSLATED_CONNECT_ERROR_CODE, 39 UNTRANSLATED_CONNECT_ERROR_CODE,
40 // NotFoundError: 40 // NotFoundError:
41 NO_BLUETOOTH_ADAPTER, 41 NO_BLUETOOTH_ADAPTER,
42 CHOSEN_DEVICE_VANISHED, 42 CHOSEN_DEVICE_VANISHED,
43 CHOOSER_CANCELLED, 43 CHOOSER_CANCELLED,
44 CHOOSER_DISABLED, 44 CHOOSER_NOT_SHOWN_API_GLOBALLY_DISABLED,
45 CHOOSER_DENIED_PERMISSION, 45 CHOOSER_NOT_SHOWN_API_LOCALLY_DISABLED,
46 CHOOSER_NOT_SHOWN_USER_DENIED_PERMISSION_TO_SCAN,
46 SERVICE_NOT_FOUND, 47 SERVICE_NOT_FOUND,
47 CHARACTERISTIC_NOT_FOUND, 48 CHARACTERISTIC_NOT_FOUND,
48 NO_CHARACTERISTICS_FOUND, 49 NO_CHARACTERISTICS_FOUND,
49 // NotSupportedError: 50 // NotSupportedError:
50 GATT_UNKNOWN_ERROR, 51 GATT_UNKNOWN_ERROR,
51 GATT_UNKNOWN_FAILURE, 52 GATT_UNKNOWN_FAILURE,
52 GATT_NOT_PERMITTED, 53 GATT_NOT_PERMITTED,
53 GATT_NOT_SUPPORTED, 54 GATT_NOT_SUPPORTED,
54 GATT_UNTRANSLATED_ERROR_CODE, 55 GATT_UNTRANSLATED_ERROR_CODE,
55 // SecurityError: 56 // SecurityError:
56 GATT_NOT_AUTHORIZED, 57 GATT_NOT_AUTHORIZED,
57 BLACKLISTED_CHARACTERISTIC_UUID, 58 BLACKLISTED_CHARACTERISTIC_UUID,
58 BLACKLISTED_READ, 59 BLACKLISTED_READ,
59 BLACKLISTED_WRITE, 60 BLACKLISTED_WRITE,
60 NOT_ALLOWED_TO_ACCESS_SERVICE, 61 NOT_ALLOWED_TO_ACCESS_SERVICE,
61 REQUEST_DEVICE_WITH_BLACKLISTED_UUID, 62 REQUEST_DEVICE_WITH_BLACKLISTED_UUID,
62 REQUEST_DEVICE_WITH_UNIQUE_ORIGIN, 63 REQUEST_DEVICE_WITH_UNIQUE_ORIGIN,
63 REQUEST_DEVICE_WITHOUT_FRAME, 64 REQUEST_DEVICE_WITHOUT_FRAME,
64 // SyntaxError: 65 // SyntaxError:
65 // TODO(ortuno): Remove once we no longer use IPC. 66 // TODO(ortuno): Remove once we no longer use IPC.
66 ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME, 67 ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME,
67 }; 68 };
68 69
69 // TODO(ortuno): Define Bluetooth Service. 70 // TODO(ortuno): Define Bluetooth Service.
70 // https://crbug.com/508771 71 // https://crbug.com/508771
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698