HTMLMediaElement.h 612 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLElement.h>
  8. namespace Web::HTML {
  9. class HTMLMediaElement : public HTMLElement {
  10. WEB_PLATFORM_OBJECT(HTMLMediaElement, HTMLElement);
  11. public:
  12. virtual ~HTMLMediaElement() override;
  13. Bindings::CanPlayTypeResult can_play_type(DeprecatedString const& type) const;
  14. void load() const;
  15. void pause() const;
  16. protected:
  17. HTMLMediaElement(DOM::Document&, DOM::QualifiedName);
  18. virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
  19. };
  20. }