mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Add event target for bluetooth
This commit is contained in:
parent
b18ec28fa7
commit
d9c7ffb5b3
11 changed files with 111 additions and 19 deletions
|
@ -5,7 +5,7 @@
|
|||
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattcharacteristic
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothRemoteGATTCharacteristic {
|
||||
interface BluetoothRemoteGATTCharacteristic : EventTarget {
|
||||
readonly attribute BluetoothRemoteGATTService service;
|
||||
readonly attribute DOMString uuid;
|
||||
readonly attribute BluetoothCharacteristicProperties properties;
|
||||
|
@ -21,5 +21,10 @@ interface BluetoothRemoteGATTCharacteristic {
|
|||
Promise<BluetoothRemoteGATTCharacteristic> stopNotifications();
|
||||
};
|
||||
|
||||
//BluetootRemoteGATTCharacteristic implements EventTarget;
|
||||
//BluetootRemoteGATTCharacteristic implements CharacteristicEventHandlers;
|
||||
[NoInterfaceObject]
|
||||
interface CharacteristicEventHandlers {
|
||||
attribute EventHandler oncharacteristicvaluechanged;
|
||||
};
|
||||
|
||||
// BluetoothRemoteGATTCharacteristic implements EventTarget;
|
||||
BluetoothRemoteGATTCharacteristic implements CharacteristicEventHandlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue