1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Ladybird: Port over ConsoleWidget from the SerenityOS Browser

While this adds a fair bit of widget code, we're also increasing code
sharing by using the same bits in WebContentClient for interacting with
the JS console.

That said, we should look for more ways to share code here.
This commit is contained in:
Andreas Kling 2022-10-06 10:39:02 +02:00 committed by Andrew Kaster
parent 26a7ea0e0f
commit 1298baa9ad
5 changed files with 235 additions and 35 deletions

View file

@ -25,6 +25,10 @@
class QTextEdit;
class QLineEdit;
namespace Ladybird {
class ConsoleWidget;
}
namespace WebView {
class WebContentClient;
}
@ -152,11 +156,9 @@ private:
qreal m_inverse_pixel_scaling_ratio { 1.0 };
bool m_should_show_line_box_borders { false };
QPointer<QWidget> m_js_console_widget;
QPointer<QWidget> m_inspector_widget;
QTextEdit* m_js_console_output_edit { nullptr };
QLineEdit* m_js_console_input_edit { nullptr };
Ladybird::ConsoleWidget* m_console_widget { nullptr };
Gfx::IntRect m_viewport_rect;