diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-11 00:18:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-11 00:54:01 +0200 |
commit | fdc1c150642011e3fec0e0dacd3f0b26ae77cf57 (patch) | |
tree | 9e63dbd2e5ee763fb08bbf0d4e201ab8ef6d7cf7 /Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl | |
parent | 5c9ca5c2dccbb8800ac78bf3ab74e372bb3b8895 (diff) | |
download | serenity-fdc1c150642011e3fec0e0dacd3f0b26ae77cf57.zip |
LibWeb: Stub out a basic ResizeObserver interface
This patch establishes scaffolding for the ResizeObserver API.
Diffstat (limited to 'Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl')
-rw-r--r-- | Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl b/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl new file mode 100644 index 0000000000..868ad4612d --- /dev/null +++ b/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.idl @@ -0,0 +1,17 @@ +[Exposed=(Window)] +interface ResizeObserver { + + // FIXME: This should be a ResizeObserverCallback. + constructor(any callback); + undefined observe(Element target, optional ResizeObserverOptions options = {}); + undefined unobserve(Element target); + undefined disconnect(); + +}; + +dictionary ResizeObserverOptions { + + // FIXME: This should be an enum. + DOMString box = "content-box"; + +}; |