mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibWeb: Move helper to toggle a media element's playback to the element
This will be needed elsewhere.
This commit is contained in:
parent
435ced70b8
commit
3793b7c6bd
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/trflynn89
Commit: 3793b7c6bd
Pull-request: https://github.com/SerenityOS/serenity/pull/19771
3 changed files with 20 additions and 17 deletions
|
@ -84,6 +84,7 @@ public:
|
|||
bool potentially_playing() const;
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Promise>> play();
|
||||
WebIDL::ExceptionOr<void> pause();
|
||||
WebIDL::ExceptionOr<void> toggle_playback();
|
||||
|
||||
double volume() const { return m_volume; }
|
||||
WebIDL::ExceptionOr<void> set_volume(double);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue