mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
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:
parent
5424135d81
commit
40c0dd81d2
Notes:
sideshowbarker
2024-07-17 02:08:15 +09:00
Author: https://github.com/trflynn89
Commit: 40c0dd81d2
Pull-request: https://github.com/SerenityOS/serenity/pull/23739
11 changed files with 63 additions and 1 deletions
|
@ -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() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue