mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +00:00
LibWebView+Ladybird: Move debug request to ViewImplementation
This commit is contained in:
parent
de1c0c87fe
commit
55609f744d
6 changed files with 7 additions and 14 deletions
|
@ -446,11 +446,6 @@ void WebContentView::update_viewport_rect()
|
||||||
request_repaint();
|
request_repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContentView::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
|
|
||||||
{
|
|
||||||
client().async_debug_request(request, argument);
|
|
||||||
}
|
|
||||||
|
|
||||||
void WebContentView::run_javascript(DeprecatedString const& js_source)
|
void WebContentView::run_javascript(DeprecatedString const& js_source)
|
||||||
{
|
{
|
||||||
client().async_run_javascript(js_source);
|
client().async_run_javascript(js_source);
|
||||||
|
|
|
@ -86,8 +86,6 @@ public:
|
||||||
virtual void focusOutEvent(QFocusEvent*) override;
|
virtual void focusOutEvent(QFocusEvent*) override;
|
||||||
virtual bool event(QEvent*) override;
|
virtual bool event(QEvent*) override;
|
||||||
|
|
||||||
void debug_request(DeprecatedString const& request, DeprecatedString const& argument);
|
|
||||||
|
|
||||||
void run_javascript(DeprecatedString const& js_source);
|
void run_javascript(DeprecatedString const& js_source);
|
||||||
|
|
||||||
void did_output_js_console_message(i32 message_index);
|
void did_output_js_console_message(i32 message_index);
|
||||||
|
|
|
@ -542,11 +542,6 @@ void OutOfProcessWebView::request_repaint()
|
||||||
client().async_paint(m_client_state.back_bitmap.bitmap->rect().translated(horizontal_scrollbar().value(), vertical_scrollbar().value()), m_client_state.back_bitmap.id);
|
client().async_paint(m_client_state.back_bitmap.bitmap->rect().translated(horizontal_scrollbar().value(), vertical_scrollbar().value()), m_client_state.back_bitmap.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutOfProcessWebView::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
|
|
||||||
{
|
|
||||||
client().async_debug_request(request, argument);
|
|
||||||
}
|
|
||||||
|
|
||||||
void OutOfProcessWebView::js_console_input(DeprecatedString const& js_source)
|
void OutOfProcessWebView::js_console_input(DeprecatedString const& js_source)
|
||||||
{
|
{
|
||||||
client().async_js_console_input(js_source);
|
client().async_js_console_input(js_source);
|
||||||
|
|
|
@ -33,8 +33,6 @@ class OutOfProcessWebView final
|
||||||
public:
|
public:
|
||||||
virtual ~OutOfProcessWebView() override;
|
virtual ~OutOfProcessWebView() override;
|
||||||
|
|
||||||
void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
|
|
||||||
|
|
||||||
void js_console_input(DeprecatedString const& js_source);
|
void js_console_input(DeprecatedString const& js_source);
|
||||||
void js_console_request_messages(i32 start_index);
|
void js_console_request_messages(i32 start_index);
|
||||||
|
|
||||||
|
|
|
@ -99,4 +99,9 @@ i32 ViewImplementation::get_hovered_node_id()
|
||||||
return client().get_hovered_node_id();
|
return client().get_hovered_node_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ViewImplementation::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
|
||||||
|
{
|
||||||
|
client().async_debug_request(request, argument);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,8 @@ public:
|
||||||
void clear_inspected_dom_node();
|
void clear_inspected_dom_node();
|
||||||
i32 get_hovered_node_id();
|
i32 get_hovered_node_id();
|
||||||
|
|
||||||
|
void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
|
||||||
|
|
||||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) = 0;
|
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) = 0;
|
||||||
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) = 0;
|
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) = 0;
|
||||||
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) = 0;
|
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue