Files
ladybird/Libraries/LibWeb/Serial/Serial.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

24 lines
868 B
Plaintext

// https://wicg.github.io/serial/#serial-interface
[Exposed=(DedicatedWorker, Window), SecureContext]
interface Serial : EventTarget {
attribute EventHandler onconnect;
attribute EventHandler ondisconnect;
Promise<sequence<SerialPort>> getPorts();
[Exposed=Window] Promise<SerialPort> requestPort(optional SerialPortRequestOptions options = {});
};
// https://wicg.github.io/serial/#serialportfilter-dictionary
dictionary SerialPortFilter {
unsigned short usbVendorId;
unsigned short usbProductId;
// FIXME: Should be a BluetoothServiceUUID
DOMString bluetoothServiceClassId;
};
// https://wicg.github.io/serial/#serialportrequestoptions-dictionary
dictionary SerialPortRequestOptions {
sequence<SerialPortFilter> filters;
// FIXME: Should be a BluetoothServiceUUID
sequence<DOMString> allowedBluetoothServiceClassIds;
};