OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetoothgattdesc riptor | |
ortuno
2016/11/21 03:34:09
That spec is no longer being updated use:
https:/
dougt
2016/11/22 01:47:16
Acknowledged.
| |
6 | |
7 // Implement BluetoothRemoteGATTDescriptor interface: https://crbug.com/660699 | |
8 | |
9 [ | |
10 DependentLifetime, | |
11 RuntimeEnabled=WebBluetooth, | |
12 ] interface BluetoothRemoteGATTDescriptor : EventTarget {//: DescriptorEventHand lers { | |
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.
| |
13 | |
14 | |
15 readonly attribute BluetoothRemoteGATTCharacteristic characteristic; | |
16 readonly attribute UUID uuid; | |
17 readonly attribute DataView? value; | |
18 [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.
| |
19 [CallWith=ScriptState] Promise<void> writeValue (BufferSource value); | |
20 | |
21 // TODO(dft): Move this to DescriptorEventHandlers. | |
22 // http://crbug.com/XXXXX | |
23 attribute EventHandler ondescriptorvaluechanged; | |
24 }; | |
OLD | NEW |