mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
LibWeb: Add comments and missing items of various IDL files
This commit is contained in:
parent
fc46def2f5
commit
169d24ae2e
75 changed files with 233 additions and 129 deletions
|
@ -7,6 +7,5 @@ interface ByteLengthQueuingStrategy {
|
|||
constructor(QueuingStrategyInit init);
|
||||
|
||||
readonly attribute unrestricted double highWaterMark;
|
||||
|
||||
readonly attribute Function size;
|
||||
};
|
||||
|
|
|
@ -7,6 +7,5 @@ interface CountQueuingStrategy {
|
|||
constructor(QueuingStrategyInit init);
|
||||
|
||||
readonly attribute unrestricted double highWaterMark;
|
||||
|
||||
readonly attribute Function size;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <Streams/ReadableStreamBYOBRequest.idl>
|
||||
|
||||
// https://streams.spec.whatwg.org/#rbs-controller-class-definition
|
||||
[Exposed=*]
|
||||
interface ReadableByteStreamController {
|
||||
readonly attribute ReadableStreamBYOBRequest? byobRequest;
|
||||
|
@ -7,7 +8,5 @@ interface ReadableByteStreamController {
|
|||
|
||||
undefined close();
|
||||
undefined error(optional any e);
|
||||
|
||||
// FIXME: Implement
|
||||
// undefined enqueue(ArrayBufferView chunk);
|
||||
// FIXME: undefined enqueue(ArrayBufferView chunk);
|
||||
};
|
||||
|
|
|
@ -15,10 +15,17 @@ dictionary ReadableStreamGetReaderOptions {
|
|||
interface ReadableStream {
|
||||
constructor(optional object underlyingSource, optional QueuingStrategy strategy = {});
|
||||
|
||||
// FIXME: static ReadableStream from(any asyncIterable);
|
||||
|
||||
readonly attribute boolean locked;
|
||||
|
||||
Promise<undefined> cancel(optional any reason);
|
||||
ReadableStreamReader getReader(optional ReadableStreamGetReaderOptions options = {});
|
||||
// FIXME: ReadableStream pipeThrough(ReadableWritablePair transform, optional StreamPipeOptions options = {});
|
||||
// FIXME: Promise<undefined> pipeTo(WritableStream destination, optional StreamPipeOptions options = {});
|
||||
// FIXME: sequence<ReadableStream> tee();
|
||||
|
||||
// FIXME: async iterable<any>(optional ReadableStreamIteratorOptions options = {});
|
||||
};
|
||||
|
||||
typedef (ReadableStreamDefaultReader or ReadableStreamBYOBReader) ReadableStreamReader;
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
interface ReadableStreamBYOBReader {
|
||||
constructor(ReadableStream stream);
|
||||
|
||||
// FIXME: Implement
|
||||
// Promise<ReadableStreamReadResult> read(ArrayBufferView view);
|
||||
// FIXME: Promise<ReadableStreamReadResult> read(ArrayBufferView view);
|
||||
undefined releaseLock();
|
||||
};
|
||||
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// https://streams.spec.whatwg.org/#readablestreambyobrequest
|
||||
[Exposed=*]
|
||||
interface ReadableStreamBYOBRequest {
|
||||
// FIXME: This should be an ArrayBufferView
|
||||
readonly attribute any? view;
|
||||
|
||||
// FIXME: Implement
|
||||
// undefined respond([EnforceRange] unsigned long long bytesWritten);
|
||||
// undefined respondWithNewView(ArrayBufferView view);
|
||||
// FIXME: undefined respond([EnforceRange] unsigned long long bytesWritten);
|
||||
// FIXME: undefined respondWithNewView(ArrayBufferView view);
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#import <Streams/QueuingStrategy.idl>
|
||||
#import <Streams/WritableStreamDefaultWriter.idl>
|
||||
|
||||
// https://streams.spec.whatwg.org/#writablestream
|
||||
[Exposed=*, Transferable]
|
||||
interface WritableStream {
|
||||
constructor(optional object underlyingSink, optional QueuingStrategy strategy = {});
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/AbortSignal.idl>
|
||||
|
||||
// https://streams.spec.whatwg.org/#writablestreamdefaultcontroller
|
||||
[Exposed=*]
|
||||
interface WritableStreamDefaultController {
|
||||
readonly attribute AbortSignal signal;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#import <Streams/WritableStream.idl>
|
||||
|
||||
// https://streams.spec.whatwg.org/#writablestreamdefaultwriter
|
||||
[Exposed=*]
|
||||
interface WritableStreamDefaultWriter {
|
||||
constructor(WritableStream stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue