mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
LibWeb: Add OOPWV IPC for retrieving selected text
This commit is contained in:
parent
528574d958
commit
2fda6ce159
Notes:
sideshowbarker
2024-07-18 09:03:29 +09:00
Author: https://github.com/trflynn89
Commit: 2fda6ce159
Pull-request: https://github.com/SerenityOS/serenity/pull/8740
5 changed files with 15 additions and 0 deletions
|
@ -243,4 +243,9 @@ void ClientConnection::js_console_input(const String& js_source)
|
|||
m_console_client->handle_input(js_source);
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetSelectedTextResponse ClientConnection::get_selected_text()
|
||||
{
|
||||
return page().focused_context().selected_text();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue