mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +00:00
LibWeb: Add IDL definition for Web::Streams::QueuingStrategyInit
This is used in the constructor for ByteLengthQueuingStrategy and CountQueuingStrategy.
This commit is contained in:
parent
4a86861a9d
commit
0d714ad165
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/shannonbooth
Commit: 0d714ad165
Pull-request: https://github.com/SerenityOS/serenity/pull/19455
Reviewed-by: https://github.com/kennethmyhra ✅
Reviewed-by: https://github.com/mattco98 ✅
3 changed files with 21 additions and 0 deletions
|
@ -548,6 +548,7 @@ class WritableStreamDefaultController;
|
||||||
class WritableStreamDefaultWriter;
|
class WritableStreamDefaultWriter;
|
||||||
|
|
||||||
struct PullIntoDescriptor;
|
struct PullIntoDescriptor;
|
||||||
|
struct QueuingStrategyInit;
|
||||||
struct UnderlyingSink;
|
struct UnderlyingSink;
|
||||||
struct UnderlyingSource;
|
struct UnderlyingSource;
|
||||||
}
|
}
|
||||||
|
|
16
Userland/Libraries/LibWeb/Streams/QueuingStrategyInit.h
Normal file
16
Userland/Libraries/LibWeb/Streams/QueuingStrategyInit.h
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, Shannon Booth <shannon.ml.booth@gmail.com>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace Web::Streams {
|
||||||
|
|
||||||
|
// https://streams.spec.whatwg.org/#dictdef-queuingstrategyinit
|
||||||
|
struct QueuingStrategyInit {
|
||||||
|
double high_water_mark;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
// https://streams.spec.whatwg.org/#dictdef-queuingstrategyinit
|
||||||
|
dictionary QueuingStrategyInit {
|
||||||
|
required unrestricted double highWaterMark;
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue