mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
LibWeb+LibWebView+WebContent: Support muting an entire page
This adds an IPC for chromes to mute a tab. When muted, we trigger an internal volume change notification and indicate that the user agent has overriden the media volume.
This commit is contained in:
committed by
Andreas Kling
parent
7c31343df0
commit
f61f55d397
@@ -98,6 +98,8 @@ public:
|
||||
bool muted() const { return m_muted; }
|
||||
void set_muted(bool);
|
||||
|
||||
void page_mute_state_changed(Badge<Page>);
|
||||
|
||||
double effective_media_volume() const;
|
||||
|
||||
JS::NonnullGCPtr<AudioTrackList> audio_tracks() const { return *m_audio_tracks; }
|
||||
|
||||
Reference in New Issue
Block a user