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:
parent
606b9ff6f3
commit
b410804f54
5 changed files with 59 additions and 41 deletions
18
Userland/Libraries/LibWeb/RequestIdleCallback/IdleRequest.h
Normal file
18
Userland/Libraries/LibWeb/RequestIdleCallback/IdleRequest.h
Normal 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 };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue