AudioBox.h 618 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Forward.h>
  8. #include <LibWeb/HTML/BrowsingContext.h>
  9. #include <LibWeb/Layout/ReplacedBox.h>
  10. namespace Web::Layout {
  11. class AudioBox final : public ReplacedBox {
  12. JS_CELL(AudioBox, ReplacedBox);
  13. public:
  14. HTML::HTMLAudioElement& dom_node();
  15. HTML::HTMLAudioElement const& dom_node() const;
  16. virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
  17. private:
  18. AudioBox(DOM::Document&, DOM::Element&, NonnullRefPtr<CSS::StyleProperties>);
  19. };
  20. }