LibWeb+LibWebView+WebContent: Inform chromes when audio is played/paused

Most browsers have some indicator when audio is playing in a tab, which
makes it easier to find that tab and mute unwanted audio. This adds an
IPC to allow the Ladybird chromes to do something similar.
This commit is contained in:
Timothy Flynn 2024-03-26 19:27:06 -04:00 committed by Andreas Kling
commit 40c0dd81d2
Notes: sideshowbarker 2024-07-17 02:08:15 +09:00
11 changed files with 63 additions and 1 deletions

View file

@ -30,6 +30,7 @@
#include <LibWeb/Cookie/Cookie.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/ActivateTab.h>
#include <LibWeb/HTML/AudioPlayState.h>
#include <LibWeb/HTML/ColorPickerUpdateState.h>
#include <LibWeb/HTML/FileFilter.h>
#include <LibWeb/HTML/SelectItem.h>
@ -295,6 +296,8 @@ public:
virtual void page_did_insert_clipboard_entry([[maybe_unused]] String data, [[maybe_unused]] String presentation_style, [[maybe_unused]] String mime_type) { }
virtual void page_did_change_audio_play_state(HTML::AudioPlayState) { }
virtual WebView::SocketPair request_worker_agent() { return { -1, -1 }; }
virtual void inspector_did_load() { }