1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibWeb/HTML: Port Window.requestIdleCallback() to IDL

This commit is contained in:
Linus Groh 2023-03-06 23:38:44 +00:00
parent 606b9ff6f3
commit b410804f54
5 changed files with 59 additions and 41 deletions

View file

@ -7,6 +7,7 @@
#import <HighResolutionTime/Performance.idl>
#import <HTML/Navigator.idl>
#import <HTML/WindowOrWorkerGlobalScope.idl>
#import <RequestIdleCallback/IdleRequest.idl>
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
[Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString]
@ -77,6 +78,9 @@ interface Window : EventTarget {
[Replaceable] readonly attribute long outerHeight;
[Replaceable] readonly attribute double devicePixelRatio;
// https://w3c.github.io/requestidlecallback/#window_extensions
unsigned long requestIdleCallback(IdleRequestCallback callback, optional IdleRequestOptions options = {});
// https://w3c.github.io/selection-api/#extensions-to-window-interface
Selection? getSelection();