Chromium Code Reviews| 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 module blink.mojom; | 5 module blink.mojom; |
| 5 | 6 |
| 6 enum WebBluetoothError { | 7 enum WebBluetoothError { |
| 7 SUCCESS | 8 SUCCESS, |
| 9 // InvalidModificationError: | |
| 10 GATT_INVALID_ATTRIBUTE_LENGTH, | |
| 11 // InvalidStateError: | |
| 12 SERVICE_NO_LONGER_EXISTS, | |
| 13 CHARACTERISTIC_NO_LONGER_EXISTS, | |
| 14 // NetworkError: | |
| 15 DEVICE_NO_LONGER_IN_RANGE, | |
| 16 GATT_NOT_PAIRED, | |
| 17 GATT_OPERATION_IN_PROGRESS, | |
| 18 // NotSupportedError: | |
| 19 GATT_UNKNOWN_ERROR, | |
| 20 GATT_UNKNOWN_FAILURE, | |
| 21 GATT_NOT_PERMITTED, | |
| 22 GATT_NOT_SUPPORTED, | |
| 23 GATT_UNTRANSLATED_ERROR_CODE, | |
| 24 // SecurityError: | |
| 25 GATT_NOT_AUTHORIZED, | |
| 26 BLACKLISTED_WRITE | |
| 8 }; | 27 }; |
| 9 | 28 |
| 10 // TODO(ortuno): Define Bluetooth Service. | 29 // TODO(ortuno): Define Bluetooth Service. |
| 11 // https://crbug.com/508771 | 30 // https://crbug.com/508771 |
| 31 | |
| 32 interface WebBluetoothService { | |
| 33 | |
| 34 RemoteCharacteristicWriteValue( | |
|
Jeffrey Yasskin
2016/03/25 00:48:24
Comment what this does.
ortuno
2016/03/29 17:58:34
Done.
| |
| 35 string characteristic_instance_id, | |
| 36 array<uint8> value) => (WebBluetoothError error); | |
| 37 | |
| 38 }; | |
| OLD | NEW |