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

LibWeb: Add the requestIdleCallback/cancelIdleCallback API

This commit is contained in:
Simon Wanner 2022-04-01 19:46:29 +02:00 committed by Linus Groh
parent 836d2ff259
commit ea9857a423
4 changed files with 80 additions and 1 deletions

View file

@ -119,6 +119,9 @@ public:
void start_an_idle_period();
u32 request_idle_callback(NonnullOwnPtr<Bindings::CallbackType> callback);
void cancel_idle_callback(u32);
private:
explicit Window(DOM::Document&);