mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
Ladybird+LibWeb+WebContent: Generalize video context menus for all media
The data we want to send out of the WebContent process is identical for audio and video elements. Rather than just duplicating all of this for audio, generalize the names used for this IPC for all media elements. This also encapsulates that data into a struct. This makes adding new fields to be sent much easier (such as an upcoming field for muting the element).
This commit is contained in:
parent
e81abbde7b
commit
14ca04de25
17 changed files with 198 additions and 147 deletions
|
@ -96,9 +96,9 @@ private:
|
|||
virtual void confirm_closed(bool accepted) override;
|
||||
virtual void prompt_closed(Optional<String> const& response) override;
|
||||
|
||||
virtual void toggle_video_play_state() override;
|
||||
virtual void toggle_video_loop_state() override;
|
||||
virtual void toggle_video_controls_state() override;
|
||||
virtual void toggle_media_play_state() override;
|
||||
virtual void toggle_media_loop_state() override;
|
||||
virtual void toggle_media_controls_state() override;
|
||||
|
||||
virtual Messages::WebContentServer::TakeDocumentScreenshotResponse take_document_screenshot() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue