1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +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

@ -0,0 +1,18 @@
/*
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <AK/Types.h>
namespace Web::RequestIdleCallback {
struct IdleRequestOptions {
Optional<u32> timeout { 0 };
};
}