/* * Copyright (c) 2020, Hunter Salyer * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "History.h" #include #include namespace Browser { class ConsoleWidget final : public GUI::Widget { C_OBJECT(ConsoleWidget) public: virtual ~ConsoleWidget(); 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 on_js_input; private: ConsoleWidget(); RefPtr m_input; RefPtr m_output_view; }; }