| 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 // Errors that can occur during Web Bluetooth execution, which are transformed | 7 // Errors that can occur during Web Bluetooth execution, which are transformed |
| 8 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. | 8 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. |
| 9 // | 9 // |
| 10 // These errors all produce constant message strings. If a particular message | 10 // These errors all produce constant message strings. If a particular message |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 GATT_NOT_PERMITTED, | 54 GATT_NOT_PERMITTED, |
| 55 GATT_NOT_SUPPORTED, | 55 GATT_NOT_SUPPORTED, |
| 56 GATT_UNTRANSLATED_ERROR_CODE, | 56 GATT_UNTRANSLATED_ERROR_CODE, |
| 57 // SecurityError: | 57 // SecurityError: |
| 58 GATT_NOT_AUTHORIZED, | 58 GATT_NOT_AUTHORIZED, |
| 59 BLACKLISTED_CHARACTERISTIC_UUID, | 59 BLACKLISTED_CHARACTERISTIC_UUID, |
| 60 BLACKLISTED_READ, | 60 BLACKLISTED_READ, |
| 61 BLACKLISTED_WRITE, | 61 BLACKLISTED_WRITE, |
| 62 NOT_ALLOWED_TO_ACCESS_SERVICE, | 62 NOT_ALLOWED_TO_ACCESS_SERVICE, |
| 63 REQUEST_DEVICE_WITH_BLACKLISTED_UUID, | 63 REQUEST_DEVICE_WITH_BLACKLISTED_UUID, |
| 64 REQUEST_DEVICE_WITH_UNIQUE_ORIGIN, | 64 REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, |
| 65 REQUEST_DEVICE_WITHOUT_FRAME, | 65 REQUEST_DEVICE_WITHOUT_FRAME, |
| 66 // SyntaxError: | 66 // SyntaxError: |
| 67 // TODO(ortuno): Remove once we no longer use IPC. | 67 // TODO(ortuno): Remove once we no longer use IPC. |
| 68 ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME, | 68 ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME, |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 // TODO(ortuno): Define Bluetooth Service. | 71 // TODO(ortuno): Define Bluetooth Service. |
| 72 // https://crbug.com/508771 | 72 // https://crbug.com/508771 |
| 73 | 73 |
| 74 // Web Bluetooth Interface that Blink can use to perform | 74 // Web Bluetooth Interface that Blink can use to perform |
| 75 // Bluetooth GATT Operations on Bluetooth Devices. | 75 // Bluetooth GATT Operations on Bluetooth Devices. |
| 76 interface WebBluetoothService { | 76 interface WebBluetoothService { |
| 77 | 77 |
| 78 // Writes a value to the characteristic with | 78 // Writes a value to the characteristic with |
| 79 // |characteristic_instance_id|. The callback is run with | 79 // |characteristic_instance_id|. The callback is run with |
| 80 // WebBluetoothError::SUCCESS if the value was successfully | 80 // WebBluetoothError::SUCCESS if the value was successfully |
| 81 // written. | 81 // written. |
| 82 RemoteCharacteristicWriteValue( | 82 RemoteCharacteristicWriteValue( |
| 83 string characteristic_instance_id, | 83 string characteristic_instance_id, |
| 84 array<uint8> value) => (WebBluetoothError error); | 84 array<uint8> value) => (WebBluetoothError error); |
| 85 | 85 |
| 86 }; | 86 }; |
| OLD | NEW |