mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +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/#bluetoothremotegattservice
|
||||
|
||||
[Pref="dom.bluetooth.enabled"]
|
||||
interface BluetoothRemoteGATTService {
|
||||
interface BluetoothRemoteGATTService : EventTarget {
|
||||
readonly attribute BluetoothDevice device;
|
||||
readonly attribute DOMString uuid;
|
||||
readonly attribute boolean isPrimary;
|
||||
|
@ -15,3 +15,14 @@ interface BluetoothRemoteGATTService {
|
|||
Promise<BluetoothRemoteGATTService> getIncludedService(BluetoothServiceUUID service);
|
||||
Promise<sequence<BluetoothRemoteGATTService>> getIncludedServices(optional BluetoothServiceUUID service);
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface ServiceEventHandlers {
|
||||
attribute EventHandler onserviceadded;
|
||||
attribute EventHandler onservicechanged;
|
||||
attribute EventHandler onserviceremoved;
|
||||
};
|
||||
|
||||
// BluetoothRemoteGATTService implements EventTarget;
|
||||
// BluetoothRemoteGATTService implements CharacteristicEventHandlers;
|
||||
BluetoothRemoteGATTService implements ServiceEventHandlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue