mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Browser: Add a context menu item to take a full document screenshot
This commit is contained in:
parent
95e591b61b
commit
ea7ce76d20
3 changed files with 29 additions and 4 deletions
|
@ -40,6 +40,7 @@ public:
|
|||
GUI::Action& inspect_dom_tree_action() { return *m_inspect_dom_tree_action; }
|
||||
GUI::Action& inspect_dom_node_action() { return *m_inspect_dom_node_action; }
|
||||
GUI::Action& take_visible_screenshot_action() { return *m_take_visible_screenshot_action; }
|
||||
GUI::Action& take_full_screenshot_action() { return *m_take_full_screenshot_action; }
|
||||
|
||||
void content_filters_changed();
|
||||
void proxy_mappings_changed();
|
||||
|
@ -59,7 +60,11 @@ private:
|
|||
|
||||
virtual void event(Core::Event&) override;
|
||||
|
||||
ErrorOr<void> take_screenshot();
|
||||
enum class ScreenshotType {
|
||||
Visible,
|
||||
Full,
|
||||
};
|
||||
ErrorOr<void> take_screenshot(ScreenshotType);
|
||||
|
||||
RefPtr<GUI::Action> m_go_back_action;
|
||||
RefPtr<GUI::Action> m_go_forward_action;
|
||||
|
@ -71,6 +76,7 @@ private:
|
|||
RefPtr<GUI::Action> m_inspect_dom_tree_action;
|
||||
RefPtr<GUI::Action> m_inspect_dom_node_action;
|
||||
RefPtr<GUI::Action> m_take_visible_screenshot_action;
|
||||
RefPtr<GUI::Action> m_take_full_screenshot_action;
|
||||
|
||||
CookieJar& m_cookie_jar;
|
||||
WindowActions m_window_actions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue