1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +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:
Timothy Flynn 2023-10-17 13:09:41 -04:00 committed by Andreas Kling
parent 0715ba889e
commit 55092dd164
8 changed files with 139 additions and 112 deletions

View file

@ -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 };
};
}