mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
LibWeb: Add OOPWV IPC for selecting all text
This commit is contained in:
parent
fea7e84b26
commit
ae910e4370
5 changed files with 14 additions and 0 deletions
|
@ -248,4 +248,10 @@ Messages::WebContentServer::GetSelectedTextResponse ClientConnection::get_select
|
|||
return page().focused_context().selected_text();
|
||||
}
|
||||
|
||||
void ClientConnection::select_all()
|
||||
{
|
||||
page().focused_context().select_all();
|
||||
page().client().page_did_change_selection();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ private:
|
|||
virtual void js_console_initialize() override;
|
||||
virtual void js_console_input(String const&) override;
|
||||
virtual Messages::WebContentServer::GetSelectedTextResponse get_selected_text() override;
|
||||
virtual void select_all() override;
|
||||
|
||||
void flush_pending_paint_requests();
|
||||
|
||||
|
|
|
@ -31,4 +31,5 @@ endpoint WebContentServer
|
|||
js_console_input(String js_source) =|
|
||||
|
||||
get_selected_text() => (String selection)
|
||||
select_all() =|
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue