mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
With this commit, all PlaybackManager can do is autoplay a file from start to finish, with no pausing or seeking functionality. All audio playback functionality has been removed from HTMLMediaElement and HTMLAudioElement in anticipation of PlaybackManager taking that over, for both audio-only and audio/video.
34 lines
812 B
C++
34 lines
812 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);
|
|
GC_DECLARE_ALLOCATOR(HTMLAudioElement);
|
|
|
|
public:
|
|
virtual ~HTMLAudioElement() override;
|
|
|
|
Layout::AudioBox* layout_node();
|
|
Layout::AudioBox const* layout_node() const;
|
|
|
|
bool should_paint() const;
|
|
|
|
private:
|
|
HTMLAudioElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
virtual GC::Ptr<Layout::Node> create_layout_node(GC::Ref<CSS::ComputedProperties>) override;
|
|
virtual void adjust_computed_style(CSS::ComputedProperties&) override;
|
|
};
|
|
|
|
}
|