summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp
blob: 53996f7756604748dd95798ff70e5cbde09ee363 (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
/*
 * 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() = default;

}