diff options
author | Linus Groh <mail@linusgroh.de> | 2023-01-12 20:42:42 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-12 23:39:36 +0100 |
commit | 5bf5697f16249954a55be564c944325057f49027 (patch) | |
tree | ca5c151a14d79e363dc557f2aab88e1e55e0827d /Userland/Libraries/LibWebView/ViewImplementation.cpp | |
parent | 8c11a2c2532dff7d9cb9aabd0a0989b2b8859105 (diff) | |
download | serenity-5bf5697f16249954a55be564c944325057f49027.zip |
LibWebView+Ladybird: Move text selection to ViewImplementation
Diffstat (limited to 'Userland/Libraries/LibWebView/ViewImplementation.cpp')
-rw-r--r-- | Userland/Libraries/LibWebView/ViewImplementation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWebView/ViewImplementation.cpp b/Userland/Libraries/LibWebView/ViewImplementation.cpp index 81da873e7a..3e55943b1f 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.cpp +++ b/Userland/Libraries/LibWebView/ViewImplementation.cpp @@ -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(); |