mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Impl Setlike and Maplike (#30237)
* MallocSizeOf for Index{Set, Map} * like as iterable in WebIDL * Codegen magic for like interfaces * TestBinding for like * Test for Setlike and Maplike test bindings * Some fixes * Switch to any.js * nit * Keep order
This commit is contained in:
parent
3df284cf54
commit
e0a6281e73
19 changed files with 1088 additions and 4 deletions
20
components/script/dom/webidls/TestBindingMaplike.webidl
Normal file
20
components/script/dom/webidls/TestBindingMaplike.webidl
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// This interface is entirely internal to Servo, and should not be accessible to
|
||||
// web pages.
|
||||
|
||||
[Pref="dom.testbinding.enabled", Exposed=(Window,Worker)]
|
||||
interface TestBindingMaplike {
|
||||
[Throws]
|
||||
constructor();
|
||||
|
||||
maplike<DOMString, long>;
|
||||
undefined setInternal(DOMString aKey, long aValue);
|
||||
undefined clearInternal();
|
||||
boolean deleteInternal(DOMString aKey);
|
||||
boolean hasInternal(DOMString aKey);
|
||||
[Throws]
|
||||
long getInternal(DOMString aKey);
|
||||
};
|
14
components/script/dom/webidls/TestBindingSetlike.webidl
Normal file
14
components/script/dom/webidls/TestBindingSetlike.webidl
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// This interface is entirely internal to Servo, and should not be accessible to
|
||||
// web pages.
|
||||
|
||||
[Pref="dom.testbinding.enabled", Exposed=(Window,Worker)]
|
||||
interface TestBindingSetlike {
|
||||
[Throws]
|
||||
constructor();
|
||||
|
||||
setlike<DOMString>;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue