mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:27:36 +00:00
Ladybird+LibWeb+WebContent: Add context menu controls for muting audio
This commit is contained in:
parent
b3bbdb1e2c
commit
9e95c9892c
16 changed files with 78 additions and 0 deletions
|
@ -790,6 +790,11 @@ void ConnectionFromClient::toggle_media_play_state()
|
|||
m_page_host->toggle_media_play_state().release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::toggle_media_mute_state()
|
||||
{
|
||||
m_page_host->toggle_media_mute_state();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::toggle_media_loop_state()
|
||||
{
|
||||
m_page_host->toggle_media_loop_state().release_value_but_fixme_should_propagate_errors();
|
||||
|
|
|
@ -97,6 +97,7 @@ private:
|
|||
virtual void prompt_closed(Optional<String> const& response) override;
|
||||
|
||||
virtual void toggle_media_play_state() override;
|
||||
virtual void toggle_media_mute_state() override;
|
||||
virtual void toggle_media_loop_state() override;
|
||||
virtual void toggle_media_controls_state() override;
|
||||
|
||||
|
|
|
@ -339,6 +339,11 @@ Web::WebIDL::ExceptionOr<void> PageHost::toggle_media_play_state()
|
|||
return page().toggle_media_play_state();
|
||||
}
|
||||
|
||||
void PageHost::toggle_media_mute_state()
|
||||
{
|
||||
page().toggle_media_mute_state();
|
||||
}
|
||||
|
||||
Web::WebIDL::ExceptionOr<void> PageHost::toggle_media_loop_state()
|
||||
{
|
||||
return page().toggle_media_loop_state();
|
||||
|
|
|
@ -50,6 +50,7 @@ public:
|
|||
void prompt_closed(Optional<String> response);
|
||||
|
||||
Web::WebIDL::ExceptionOr<void> toggle_media_play_state();
|
||||
void toggle_media_mute_state();
|
||||
Web::WebIDL::ExceptionOr<void> toggle_media_loop_state();
|
||||
Web::WebIDL::ExceptionOr<void> toggle_media_controls_state();
|
||||
|
||||
|
|
|
@ -79,6 +79,7 @@ endpoint WebContentServer
|
|||
prompt_closed(Optional<String> response) =|
|
||||
|
||||
toggle_media_play_state() =|
|
||||
toggle_media_mute_state() =|
|
||||
toggle_media_loop_state() =|
|
||||
toggle_media_controls_state() =|
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue