1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:07:35 +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:
Shannon Booth 2023-06-18 19:17:44 +12:00 committed by Andreas Kling
parent 4a86861a9d
commit 0d714ad165
3 changed files with 21 additions and 0 deletions

View 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;
};
}

View file

@ -0,0 +1,4 @@
// https://streams.spec.whatwg.org/#dictdef-queuingstrategyinit
dictionary QueuingStrategyInit {
required unrestricted double highWaterMark;
};