Chromium Code Reviews| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.idl |
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.idl b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6808b117f053e0219b4712a8a9154f00e5564565 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.idl |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetoothgattdescriptor |
|
ortuno
2016/11/21 03:34:09
That spec is no longer being updated use:
https:/
dougt
2016/11/22 01:47:16
Acknowledged.
|
| + |
| +// Implement BluetoothRemoteGATTDescriptor interface: https://crbug.com/660699 |
| + |
| +[ |
| + DependentLifetime, |
| + RuntimeEnabled=WebBluetooth, |
| +] interface BluetoothRemoteGATTDescriptor : EventTarget {//: DescriptorEventHandlers { |
|
ortuno
2016/11/21 03:34:09
There are no descriptor events so no need for Even
dougt
2016/11/22 01:47:16
Acknowledged.
|
| + |
| + |
| + readonly attribute BluetoothRemoteGATTCharacteristic characteristic; |
| + readonly attribute UUID uuid; |
| + readonly attribute DataView? value; |
| + [CallWith=ScriptState] Promise<DataView> readValue(); |
|
ortuno
2016/11/21 03:34:09
nit: Line the names up.
dougt
2016/11/22 01:47:16
Acknowledged.
|
| + [CallWith=ScriptState] Promise<void> writeValue(BufferSource value); |
| + |
| + // TODO(dft): Move this to DescriptorEventHandlers. |
| + // http://crbug.com/XXXXX |
| + attribute EventHandler ondescriptorvaluechanged; |
| +}; |