1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 00:47:45 +00:00

Ladybird: Add screenshot actions to the page context menu

Browser on Serenity has these actions already.
This commit is contained in:
Timothy Flynn 2023-05-16 07:56:12 -04:00 committed by Andreas Kling
parent 374284d0d8
commit b0edc7b6e4
4 changed files with 74 additions and 0 deletions

View file

@ -60,6 +60,12 @@ private:
void open_link_in_new_tab(URL const&);
void copy_link_url(URL const&);
enum class ScreenshotType {
Visible,
Full,
};
ErrorOr<void> take_screenshot(ScreenshotType);
QBoxLayout* m_layout;
QToolBar* m_toolbar { nullptr };
QToolButton* m_reset_zoom_button { nullptr };