mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Instead of using Core::EventLoop and Core::Timer directly, LibWeb now goes through a Web::Platform abstraction layer instead. This will allow us to plug in Qt's event loop (and QTimer) over in Ladybird, to avoid having to deal with multiple event loops.
30 lines
561 B
C++
30 lines
561 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibCore/Forward.h>
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
class HTMLBlinkElement final : public HTMLElement {
|
|
WEB_PLATFORM_OBJECT(HTMLBlinkElement, HTMLElement);
|
|
|
|
public:
|
|
virtual ~HTMLBlinkElement() override;
|
|
|
|
private:
|
|
HTMLBlinkElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
void blink();
|
|
|
|
NonnullRefPtr<Platform::Timer> m_timer;
|
|
};
|
|
|
|
}
|
|
|
|
WRAPPER_HACK(HTMLBlinkElement, Web::HTML)
|