mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 01:09:25 +00:00
Our existing WebContentConsoleClient is very specific to our home-grown Inspector. It renders console output to an HTML string. For DevTools, we will not want this behavior; we will want to send representations of raw JS values. This patch makes WebContentConsoleClient a base class to handle console input from the user, either from the Inspector or from DevTools. It then moves the HTML rendering needed for the Inspector to a new class, InspectorConsoleClient. And we add a DevToolsConsoleClient (currently just stubbed) to handle needs specific to DevTools. We choose at runtime which console client to install, based on the --devtools command line flag.
21 lines
374 B
C++
21 lines
374 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace WebContent {
|
|
|
|
class ConnectionFromClient;
|
|
class ConsoleGlobalEnvironmentExtensions;
|
|
class DevToolsConsoleClient;
|
|
class InspectorConsoleClient;
|
|
class PageHost;
|
|
class PageClient;
|
|
class WebContentConsoleClient;
|
|
class WebDriverConnection;
|
|
|
|
}
|