mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replace the union types with the correct typedefs in the webidl files and the API classes.
This commit is contained in:
parent
76d6685d7f
commit
402bc552ca
7 changed files with 21 additions and 21 deletions
|
@ -11,9 +11,9 @@ interface BluetoothRemoteGATTCharacteristic {
|
|||
readonly attribute BluetoothCharacteristicProperties properties;
|
||||
readonly attribute ByteString? value;
|
||||
[Throws]
|
||||
BluetoothRemoteGATTDescriptor getDescriptor((DOMString or unsigned long) descriptor);
|
||||
BluetoothRemoteGATTDescriptor getDescriptor(BluetoothDescriptorUUID descriptor);
|
||||
[Throws]
|
||||
sequence<BluetoothRemoteGATTDescriptor> getDescriptors(optional (DOMString or unsigned long) descriptor);
|
||||
sequence<BluetoothRemoteGATTDescriptor> getDescriptors(optional BluetoothDescriptorUUID descriptor);
|
||||
//Promise<BluetoothRemoteGATTDescriptor> getDescriptor(BluetoothDescriptorUUID descriptor);
|
||||
//Promise<sequence<BluetoothRemoteGATTDescriptor>>
|
||||
//getDescriptors(optional BluetoothDescriptorUUID descriptor);
|
||||
|
|
|
@ -13,9 +13,9 @@ interface BluetoothRemoteGATTServer {
|
|||
[Throws]
|
||||
void disconnect();
|
||||
[Throws]
|
||||
BluetoothRemoteGATTService getPrimaryService((DOMString or unsigned long) service);
|
||||
BluetoothRemoteGATTService getPrimaryService(BluetoothServiceUUID service);
|
||||
[Throws]
|
||||
sequence<BluetoothRemoteGATTService> getPrimaryServices(optional (DOMString or unsigned long) service);
|
||||
sequence<BluetoothRemoteGATTService> getPrimaryServices(optional BluetoothServiceUUID service);
|
||||
//Promise<BluetoothRemoteGATTService> getPrimaryService(BluetoothServiceUUID service);
|
||||
//Promise<sequence<BluetoothRemoteGATTService>>getPrimaryServices(optional BluetoothServiceUUID service);
|
||||
//Promise<BluetoothRemoteGATTServer> connect();
|
||||
|
|
|
@ -10,10 +10,10 @@ interface BluetoothRemoteGATTService {
|
|||
readonly attribute DOMString uuid;
|
||||
readonly attribute boolean isPrimary;
|
||||
[Throws]
|
||||
BluetoothRemoteGATTCharacteristic getCharacteristic((DOMString or unsigned long) characteristic);
|
||||
BluetoothRemoteGATTCharacteristic getCharacteristic(BluetoothCharacteristicUUID characteristic);
|
||||
[Throws]
|
||||
sequence<BluetoothRemoteGATTCharacteristic> getCharacteristics
|
||||
(optional (DOMString or unsigned long) characteristic);
|
||||
(optional BluetoothCharacteristicUUID characteristic);
|
||||
//Promise<BluetoothRemoteGATTCharacteristic>getCharacteristic(BluetoothCharacteristicUUID characteristic);
|
||||
//Promise<sequence<BluetoothRemoteGATTCharacteristic>>
|
||||
//getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue