OLD | NEW |
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 | 4 |
5 module blink.mojom; | 5 module blink.mojom; |
6 | 6 |
7 import "device/bluetooth/public/interfaces/bluetooth_uuid.mojom"; | 7 import "device/bluetooth/public/interfaces/bluetooth_uuid.mojom"; |
8 | 8 |
9 // Errors that can occur during Web Bluetooth execution, which are transformed | 9 // Errors that can occur during Web Bluetooth execution, which are transformed |
10 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. | 10 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 NO_BLUETOOTH_ADAPTER, | 44 NO_BLUETOOTH_ADAPTER, |
45 CHOSEN_DEVICE_VANISHED, | 45 CHOSEN_DEVICE_VANISHED, |
46 CHOOSER_CANCELLED, | 46 CHOOSER_CANCELLED, |
47 CHOOSER_NOT_SHOWN_API_GLOBALLY_DISABLED, | 47 CHOOSER_NOT_SHOWN_API_GLOBALLY_DISABLED, |
48 CHOOSER_NOT_SHOWN_API_LOCALLY_DISABLED, | 48 CHOOSER_NOT_SHOWN_API_LOCALLY_DISABLED, |
49 CHOOSER_NOT_SHOWN_USER_DENIED_PERMISSION_TO_SCAN, | 49 CHOOSER_NOT_SHOWN_USER_DENIED_PERMISSION_TO_SCAN, |
50 SERVICE_NOT_FOUND, | 50 SERVICE_NOT_FOUND, |
51 NO_SERVICES_FOUND, | 51 NO_SERVICES_FOUND, |
52 CHARACTERISTIC_NOT_FOUND, | 52 CHARACTERISTIC_NOT_FOUND, |
53 NO_CHARACTERISTICS_FOUND, | 53 NO_CHARACTERISTICS_FOUND, |
| 54 WEB_BLUETOOTH_NOT_SUPPORTED, |
54 // NotSupportedError: | 55 // NotSupportedError: |
55 GATT_UNKNOWN_ERROR, | 56 GATT_UNKNOWN_ERROR, |
56 GATT_UNKNOWN_FAILURE, | 57 GATT_UNKNOWN_FAILURE, |
57 GATT_NOT_PERMITTED, | 58 GATT_NOT_PERMITTED, |
58 GATT_NOT_SUPPORTED, | 59 GATT_NOT_SUPPORTED, |
59 GATT_UNTRANSLATED_ERROR_CODE, | 60 GATT_UNTRANSLATED_ERROR_CODE, |
60 // SecurityError: | 61 // SecurityError: |
61 GATT_NOT_AUTHORIZED, | 62 GATT_NOT_AUTHORIZED, |
62 BLACKLISTED_CHARACTERISTIC_UUID, | 63 BLACKLISTED_CHARACTERISTIC_UUID, |
63 BLACKLISTED_READ, | 64 BLACKLISTED_READ, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 }; | 179 }; |
179 | 180 |
180 // Classes should implement this interface and pass an associated pointer | 181 // Classes should implement this interface and pass an associated pointer |
181 // bound to them to the WebBluetoothService by using SetClient. Classes | 182 // bound to them to the WebBluetoothService by using SetClient. Classes |
182 // that do this will be notified of device events e.g. device disconnection. | 183 // that do this will be notified of device events e.g. device disconnection. |
183 interface WebBluetoothServiceClient { | 184 interface WebBluetoothServiceClient { |
184 RemoteCharacteristicValueChanged(string characteristic_instance_id, | 185 RemoteCharacteristicValueChanged(string characteristic_instance_id, |
185 array<uint8> value); | 186 array<uint8> value); |
186 GattServerDisconnected(string device_id); | 187 GattServerDisconnected(string device_id); |
187 }; | 188 }; |
OLD | NEW |