mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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/#bluetoothdevice
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothDevice {
|
||||
interface BluetoothDevice : EventTarget {
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute DOMString? name;
|
||||
// TODO: remove this after BluetoothAdvertisingEvent implemented.
|
||||
|
@ -17,7 +17,12 @@ interface BluetoothDevice {
|
|||
// readonly attribute boolean watchingAdvertisements;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface BluetoothDeviceEventHandlers {
|
||||
attribute EventHandler ongattserverdisconnected;
|
||||
};
|
||||
|
||||
// BluetoothDevice implements EventTarget;
|
||||
// BluetoothDevice implements BluetoothDeviceEventHandlers;
|
||||
BluetoothDevice implements BluetoothDeviceEventHandlers;
|
||||
// BluetoothDevice implements CharacteristicEventHandlers;
|
||||
// BluetoothDevice implements ServiceEventHandlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue