Browser: Display full UserAgent string in status bar on menu hover

This uses the new on_action_enter & on_action_leave APIs to display
the full useragent string when hovering over one of the useragent
spoof menu options.
This commit is contained in:
Idan Horowitz 2021-04-17 23:08:06 +03:00 committed by Linus Groh
commit 47dba83d30
Notes: sideshowbarker 2024-07-18 19:29:29 +09:00
3 changed files with 43 additions and 2 deletions

View file

@ -67,6 +67,9 @@ public:
void did_become_active();
void context_menu_requested(const Gfx::IntPoint& screen_position);
void action_entered(GUI::Action&);
void action_left(GUI::Action&);
Function<void(String)> on_title_change;
Function<void(const URL&)> on_tab_open_request;
Function<void(Tab&)> on_tab_close_request;