blob: cc89aaf5ad88c40d6a1ca491fcfd9646ffb59970 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/RequestIdleCallback/IdleDeadline.h>
namespace Web::RequestIdleCallback {
NonnullRefPtr<IdleDeadline> IdleDeadline::create(double time_remaining, bool did_timeout)
{
return adopt_ref(*new IdleDeadline(time_remaining, did_timeout));
}
IdleDeadline::IdleDeadline(double time_remaining, bool did_timeout)
: m_time_remaining(time_remaining)
, m_did_timeout(did_timeout)
{
}
IdleDeadline::~IdleDeadline()
{
}
}
|