mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibWebView+Ladybird: Move running JavaScript to ViewImplementation
This commit is contained in:
parent
55609f744d
commit
8c11a2c253
6 changed files with 7 additions and 14 deletions
|
@ -552,11 +552,6 @@ void OutOfProcessWebView::js_console_request_messages(i32 start_index)
|
|||
client().async_js_console_request_messages(start_index);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::run_javascript(StringView js_source)
|
||||
{
|
||||
client().async_run_javascript(js_source);
|
||||
}
|
||||
|
||||
DeprecatedString OutOfProcessWebView::selected_text()
|
||||
{
|
||||
return client().get_selected_text();
|
||||
|
|
|
@ -36,8 +36,6 @@ public:
|
|||
void js_console_input(DeprecatedString const& js_source);
|
||||
void js_console_request_messages(i32 start_index);
|
||||
|
||||
void run_javascript(StringView);
|
||||
|
||||
DeprecatedString selected_text();
|
||||
void select_all();
|
||||
|
||||
|
|
|
@ -104,4 +104,9 @@ void ViewImplementation::debug_request(DeprecatedString const& request, Deprecat
|
|||
client().async_debug_request(request, argument);
|
||||
}
|
||||
|
||||
void ViewImplementation::run_javascript(StringView js_source)
|
||||
{
|
||||
client().async_run_javascript(js_source);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -48,6 +48,8 @@ public:
|
|||
|
||||
void debug_request(DeprecatedString const& request, DeprecatedString const& argument = {});
|
||||
|
||||
void run_javascript(StringView);
|
||||
|
||||
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_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue