mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
e81abbde7b
commit
14ca04de25
@@ -151,19 +151,19 @@ void ViewImplementation::js_console_request_messages(i32 start_index)
|
||||
client().async_js_console_request_messages(start_index);
|
||||
}
|
||||
|
||||
void ViewImplementation::toggle_video_play_state()
|
||||
void ViewImplementation::toggle_media_play_state()
|
||||
{
|
||||
client().async_toggle_video_play_state();
|
||||
client().async_toggle_media_play_state();
|
||||
}
|
||||
|
||||
void ViewImplementation::toggle_video_loop_state()
|
||||
void ViewImplementation::toggle_media_loop_state()
|
||||
{
|
||||
client().async_toggle_video_loop_state();
|
||||
client().async_toggle_media_loop_state();
|
||||
}
|
||||
|
||||
void ViewImplementation::toggle_video_controls_state()
|
||||
void ViewImplementation::toggle_media_controls_state()
|
||||
{
|
||||
client().async_toggle_video_controls_state();
|
||||
client().async_toggle_media_controls_state();
|
||||
}
|
||||
|
||||
void ViewImplementation::handle_resize()
|
||||
|
||||
Reference in New Issue
Block a user