mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +00:00
LibWeb/HTML: Stub TextTrack IDL interface
This commit is contained in:
parent
a9669639ce
commit
67e3ac8916
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/jamierocks
Commit: 67e3ac8916
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/333
Reviewed-by: https://github.com/awesomekling
12 changed files with 217 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -7,6 +8,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/TextTrack.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -17,10 +19,17 @@ class HTMLTrackElement final : public HTMLElement {
|
|||
public:
|
||||
virtual ~HTMLTrackElement() override;
|
||||
|
||||
JS::Handle<TextTrack> track() { return m_track; }
|
||||
|
||||
private:
|
||||
HTMLTrackElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
// ^DOM::Element
|
||||
virtual void attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
||||
|
||||
JS::GCPtr<TextTrack> m_track;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue