| 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/uuid.mojom"; | 7 import "device/bluetooth/public/interfaces/uuid.mojom"; |
| 8 | 8 |
| 9 // Result codes that can occur during Web Bluetooth execution, which are | 9 // Result codes that can occur during Web Bluetooth execution, which are |
| 10 // transformed to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. | 10 // transformed to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 GATT_UNKNOWN_ERROR, | 57 GATT_UNKNOWN_ERROR, |
| 58 GATT_UNKNOWN_FAILURE, | 58 GATT_UNKNOWN_FAILURE, |
| 59 GATT_NOT_PERMITTED, | 59 GATT_NOT_PERMITTED, |
| 60 GATT_NOT_SUPPORTED, | 60 GATT_NOT_SUPPORTED, |
| 61 GATT_UNTRANSLATED_ERROR_CODE, | 61 GATT_UNTRANSLATED_ERROR_CODE, |
| 62 // SecurityError: | 62 // SecurityError: |
| 63 GATT_NOT_AUTHORIZED, | 63 GATT_NOT_AUTHORIZED, |
| 64 BLACKLISTED_CHARACTERISTIC_UUID, | 64 BLACKLISTED_CHARACTERISTIC_UUID, |
| 65 BLACKLISTED_READ, | 65 BLACKLISTED_READ, |
| 66 BLACKLISTED_WRITE, | 66 BLACKLISTED_WRITE, |
| 67 NOT_ALLOWED_TO_ACCESS_ANY_SERVICE, |
| 67 NOT_ALLOWED_TO_ACCESS_SERVICE, | 68 NOT_ALLOWED_TO_ACCESS_SERVICE, |
| 68 REQUEST_DEVICE_WITH_BLACKLISTED_UUID, | 69 REQUEST_DEVICE_WITH_BLACKLISTED_UUID, |
| 69 REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, | 70 REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, |
| 70 REQUEST_DEVICE_WITHOUT_FRAME, | 71 REQUEST_DEVICE_WITHOUT_FRAME, |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 struct WebBluetoothScanFilter { | 74 struct WebBluetoothScanFilter { |
| 74 array<bluetooth.mojom.UUID>? services; | 75 array<bluetooth.mojom.UUID>? services; |
| 75 string? name; | 76 string? name; |
| 76 string? name_prefix; | 77 string? name_prefix; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 // Classes should implement this interface and pass an associated pointer | 183 // Classes should implement this interface and pass an associated pointer |
| 183 // bound to them to the WebBluetoothService by using SetClient. Classes | 184 // bound to them to the WebBluetoothService by using SetClient. Classes |
| 184 // that do this will be notified of device events e.g. device disconnection. | 185 // that do this will be notified of device events e.g. device disconnection. |
| 185 interface WebBluetoothServiceClient { | 186 interface WebBluetoothServiceClient { |
| 186 RemoteCharacteristicValueChanged(string characteristic_instance_id, | 187 RemoteCharacteristicValueChanged(string characteristic_instance_id, |
| 187 array<uint8> value); | 188 array<uint8> value); |
| 188 GattServerDisconnected(WebBluetoothDeviceId device_id); | 189 GattServerDisconnected(WebBluetoothDeviceId device_id); |
| 189 }; | 190 }; |
| OLD | NEW |