/* * Copyright (c) 2020, Hunter Salyer * Copyright (c) 2021, Andreas Kling * Copyright (c) 2021, Sam Atkins * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Browser { class ConsoleWidget final : public GUI::Widget { C_OBJECT(ConsoleWidget) public: virtual ~ConsoleWidget(); void reset(); private: explicit ConsoleWidget(WebView::OutOfProcessWebView& content_view); void request_console_messages(); void clear_output(); OwnPtr m_console_client; RefPtr m_input; RefPtr m_output_view; }; }