mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/HTML: Implement TextTrack.mode
This commit is contained in:
parent
97436e7d65
commit
4b16f1df05
Notes:
github-actions[bot]
2024-07-26 07:31:18 +00:00
Author: https://github.com/jamierocks
Commit: 4b16f1df05
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/836
3 changed files with 17 additions and 1 deletions
|
@ -75,6 +75,17 @@ void TextTrack::set_id(String id)
|
|||
m_id = id;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-mode
|
||||
Bindings::TextTrackMode TextTrack::mode()
|
||||
{
|
||||
return m_mode;
|
||||
}
|
||||
|
||||
void TextTrack::set_mode(Bindings::TextTrackMode mode)
|
||||
{
|
||||
m_mode = mode;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#handler-texttrack-oncuechange
|
||||
void TextTrack::set_oncuechange(WebIDL::CallbackType* event_handler)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue