mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
35 lines
873 B
C++
35 lines
873 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/HTML/HTMLMediaElement.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
class HTMLAudioElement final : public HTMLMediaElement {
|
|
WEB_PLATFORM_OBJECT(HTMLAudioElement, HTMLMediaElement);
|
|
|
|
public:
|
|
virtual ~HTMLAudioElement() override;
|
|
|
|
Layout::AudioBox* layout_node();
|
|
Layout::AudioBox const* layout_node() const;
|
|
|
|
private:
|
|
HTMLAudioElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
|
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
|
|
|
virtual void on_playing() override;
|
|
virtual void on_paused() override;
|
|
virtual void on_seek(double, MediaSeekMode) override;
|
|
virtual void on_volume_change() override;
|
|
};
|
|
|
|
}
|