mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
LibWebView+Ladybird: Move text selection to ViewImplementation
This commit is contained in:
parent
8c11a2c253
commit
5bf5697f16
6 changed files with 13 additions and 26 deletions
|
@ -552,16 +552,6 @@ void OutOfProcessWebView::js_console_request_messages(i32 start_index)
|
|||
client().async_js_console_request_messages(start_index);
|
||||
}
|
||||
|
||||
DeprecatedString OutOfProcessWebView::selected_text()
|
||||
{
|
||||
return client().get_selected_text();
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::select_all()
|
||||
{
|
||||
client().async_select_all();
|
||||
}
|
||||
|
||||
DeprecatedString OutOfProcessWebView::dump_layout_tree()
|
||||
{
|
||||
return client().dump_layout_tree();
|
||||
|
|
|
@ -36,9 +36,6 @@ public:
|
|||
void js_console_input(DeprecatedString const& js_source);
|
||||
void js_console_request_messages(i32 start_index);
|
||||
|
||||
DeprecatedString selected_text();
|
||||
void select_all();
|
||||
|
||||
DeprecatedString dump_layout_tree();
|
||||
|
||||
OrderedHashMap<DeprecatedString, DeprecatedString> get_local_storage_entries();
|
||||
|
|
|
@ -61,6 +61,16 @@ void ViewImplementation::reset_zoom()
|
|||
update_zoom();
|
||||
}
|
||||
|
||||
DeprecatedString ViewImplementation::selected_text()
|
||||
{
|
||||
return client().get_selected_text();
|
||||
}
|
||||
|
||||
void ViewImplementation::select_all()
|
||||
{
|
||||
client().async_select_all();
|
||||
}
|
||||
|
||||
void ViewImplementation::get_source()
|
||||
{
|
||||
client().async_get_source();
|
||||
|
|
|
@ -38,6 +38,9 @@ public:
|
|||
void zoom_out();
|
||||
void reset_zoom();
|
||||
|
||||
DeprecatedString selected_text();
|
||||
void select_all();
|
||||
|
||||
void get_source();
|
||||
|
||||
void inspect_dom_tree();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue