mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 14:55:08 +00:00
LibWeb: Add a hook for when an URL is dropped on an HtmlView
Embedders of HtmlView can now react to this by hooking on_url_drop.
This commit is contained in:
parent
f1708b3832
commit
fc26aefe81
2 changed files with 14 additions and 0 deletions
|
@ -64,6 +64,7 @@ public:
|
|||
Function<void(const String&)> on_title_change;
|
||||
Function<void(const URL&)> on_load_start;
|
||||
Function<void(const Gfx::Bitmap&)> on_favicon_change;
|
||||
Function<void(const URL&)> on_url_drop;
|
||||
|
||||
virtual bool accepts_focus() const override { return true; }
|
||||
|
||||
|
@ -76,6 +77,7 @@ protected:
|
|||
virtual void mousedown_event(GUI::MouseEvent&) override;
|
||||
virtual void mouseup_event(GUI::MouseEvent&) override;
|
||||
virtual void keydown_event(GUI::KeyEvent&) override;
|
||||
virtual void drop_event(GUI::DropEvent&) override;
|
||||
|
||||
private:
|
||||
virtual void did_scroll() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue