mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:07:34 +00:00
LibWebView+Ladybird: Move get source request to ViewImplementation
This commit is contained in:
parent
5d9f4b2ffc
commit
f313708237
6 changed files with 6 additions and 13 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -42,4 +42,9 @@ void ViewImplementation::reset_zoom()
|
|||
update_zoom();
|
||||
}
|
||||
|
||||
void ViewImplementation::get_source()
|
||||
{
|
||||
client().async_get_source();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue