QueuingStrategy.webidl (1013B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * The origin of this IDL file is 7 * https://streams.spec.whatwg.org/#qs 8 */ 9 10 dictionary QueuingStrategy { 11 unrestricted double highWaterMark; 12 QueuingStrategySize size; 13 }; 14 15 callback QueuingStrategySize = unrestricted double (optional any chunk); 16 17 dictionary QueuingStrategyInit { 18 required unrestricted double highWaterMark; 19 }; 20 21 22 [Exposed=*] 23 interface CountQueuingStrategy { 24 constructor(QueuingStrategyInit init); 25 26 readonly attribute unrestricted double highWaterMark; 27 28 [Throws] 29 readonly attribute Function size; 30 }; 31 32 [Exposed=*] 33 interface ByteLengthQueuingStrategy { 34 constructor(QueuingStrategyInit init); 35 36 readonly attribute unrestricted double highWaterMark; 37 38 [Throws] 39 readonly attribute Function size; 40 };