mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:57:46 +00:00
Browser: Add a context menu for video elements
This includes actions such as controlling play state, downloading the video, and opening the video in a new tab.
This commit is contained in:
parent
c82f678fc6
commit
1df0a141af
4 changed files with 61 additions and 0 deletions
|
@ -144,6 +144,12 @@ private:
|
|||
Gfx::ShareableBitmap m_image_context_menu_bitmap;
|
||||
URL m_image_context_menu_url;
|
||||
|
||||
RefPtr<GUI::Menu> m_video_context_menu;
|
||||
RefPtr<GUI::Action> m_video_context_menu_play_pause_action;
|
||||
RefPtr<GUI::Action> m_video_context_menu_controls_action;
|
||||
RefPtr<GUI::Action> m_video_context_menu_loop_action;
|
||||
URL m_video_context_menu_url;
|
||||
|
||||
RefPtr<GUI::Menu> m_tab_context_menu;
|
||||
RefPtr<GUI::Menu> m_page_context_menu;
|
||||
RefPtr<GUI::Menu> m_go_back_context_menu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue