mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 00:47:45 +00:00
Ladybird: Add a context menu for video elements
This commit is contained in:
parent
a0e31bf1de
commit
1b2394d92e
3 changed files with 101 additions and 0 deletions
|
@ -56,6 +56,10 @@ private:
|
|||
void rerender_toolbar_icons();
|
||||
void update_hover_label();
|
||||
|
||||
void open_link(URL const&);
|
||||
void open_link_in_new_tab(URL const&);
|
||||
void copy_link_url(URL const&);
|
||||
|
||||
QBoxLayout* m_layout;
|
||||
QToolBar* m_toolbar { nullptr };
|
||||
QToolButton* m_reset_zoom_button { nullptr };
|
||||
|
@ -69,6 +73,14 @@ private:
|
|||
|
||||
OwnPtr<QMenu> m_page_context_menu;
|
||||
|
||||
OwnPtr<QMenu> m_video_context_menu;
|
||||
OwnPtr<QIcon> m_video_context_menu_play_icon;
|
||||
OwnPtr<QIcon> m_video_context_menu_pause_icon;
|
||||
OwnPtr<QAction> m_video_context_menu_play_pause_action;
|
||||
OwnPtr<QAction> m_video_context_menu_controls_action;
|
||||
OwnPtr<QAction> m_video_context_menu_loop_action;
|
||||
URL m_video_context_menu_url;
|
||||
|
||||
int tab_index();
|
||||
|
||||
bool m_is_history_navigation { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue