mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
LibGUI+Browser: Move GUI::UrlBox to the Browser application
Browser is the only user of this component. Move it to allow making use of LibWebView for URL highlighting.
This commit is contained in:
parent
0715ba889e
commit
55092dd164
8 changed files with 139 additions and 112 deletions
|
@ -61,24 +61,4 @@ private:
|
|||
bool m_show_reveal_button { false };
|
||||
};
|
||||
|
||||
class UrlBox : public TextBox {
|
||||
C_OBJECT(UrlBox)
|
||||
public:
|
||||
virtual ~UrlBox() override = default;
|
||||
|
||||
void set_focus_transition(bool focus_transition) { m_focus_transition = focus_transition; }
|
||||
bool is_focus_transition() const { return m_focus_transition; }
|
||||
|
||||
private:
|
||||
UrlBox();
|
||||
|
||||
void highlight_url();
|
||||
|
||||
virtual void mousedown_event(GUI::MouseEvent&) override;
|
||||
virtual void focusout_event(GUI::FocusEvent&) override;
|
||||
virtual void focusin_event(GUI::FocusEvent&) override;
|
||||
|
||||
bool m_focus_transition { true };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue