1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

Browser: Implemented out of process JS console

Added input hook into console widget to allow input to be captured and
sent to the external JS console via IPC.

Output from the external JS console is fed into the console widget
via handle_js_console_output().
This commit is contained in:
Brandon Scott 2021-02-27 21:53:20 -06:00 committed by Andreas Kling
parent 0682af7b65
commit 269ec8b1f9
3 changed files with 41 additions and 1 deletions

View file

@ -40,10 +40,13 @@ public:
virtual ~ConsoleWidget();
void set_interpreter(WeakPtr<JS::Interpreter>);
void handle_js_console_output(const String& method, const String& line);
void print_source_line(const StringView&);
void print_html(const StringView&);
void clear_output();
Function<void(const String&)> on_js_input;
private:
ConsoleWidget();