1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 20:17:41 +00:00

LibWebView+Ladybird: Move get source request to ViewImplementation

This commit is contained in:
Linus Groh 2023-01-12 19:58:00 +00:00 committed by Andreas Kling
parent 5d9f4b2ffc
commit f313708237
6 changed files with 6 additions and 13 deletions

View file

@ -925,11 +925,6 @@ void WebContentView::notify_server_did_request_dismiss_dialog(Badge<WebContentCl
m_dialog->reject();
}
void WebContentView::get_source()
{
client().async_get_source();
}
void WebContentView::notify_server_did_get_source(AK::URL const& url, DeprecatedString const& source)
{
emit got_source(url, qstring_from_ak_deprecated_string(source));

View file

@ -93,8 +93,6 @@ public:
void debug_request(DeprecatedString const& request, DeprecatedString const& argument);
void get_source();
void run_javascript(DeprecatedString const& js_source);
void did_output_js_console_message(i32 message_index);

View file

@ -565,11 +565,6 @@ void OutOfProcessWebView::debug_request(DeprecatedString const& request, Depreca
client().async_debug_request(request, argument);
}
void OutOfProcessWebView::get_source()
{
client().async_get_source();
}
void OutOfProcessWebView::inspect_dom_tree()
{
client().async_inspect_dom_tree();

View file

@ -40,7 +40,6 @@ public:
void load_empty_document();
void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
void get_source();
void inspect_dom_tree();
struct DOMNodeProperties {

View file

@ -42,4 +42,9 @@ void ViewImplementation::reset_zoom()
update_zoom();
}
void ViewImplementation::get_source()
{
client().async_get_source();
}
}

View file

@ -22,6 +22,7 @@ public:
void zoom_in();
void zoom_out();
void reset_zoom();
void get_source();
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;