mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
25 lines
648 B
C++
25 lines
648 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Platform/EventLoopPlugin.h>
|
|
|
|
namespace Web::Platform {
|
|
|
|
class EventLoopPluginSerenity final : public Web::Platform::EventLoopPlugin {
|
|
public:
|
|
EventLoopPluginSerenity();
|
|
virtual ~EventLoopPluginSerenity() override;
|
|
|
|
virtual void spin_until(JS::Handle<JS::HeapFunction<bool()>> goal_condition) override;
|
|
virtual void deferred_invoke(JS::Handle<JS::HeapFunction<void()>>) override;
|
|
virtual JS::NonnullGCPtr<Timer> create_timer(JS::Heap&) override;
|
|
virtual void quit() override;
|
|
};
|
|
|
|
}
|