1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Browser+LibWebView: Add WebDriver IPC plumbing for executing scripts

This commit is contained in:
Linus Groh 2022-11-02 18:08:48 +00:00
parent b572a91a6f
commit 747ba2a88f
7 changed files with 40 additions and 0 deletions

View file

@ -13,6 +13,10 @@
#include <LibWeb/Page/Page.h>
#include <LibWebView/ViewImplementation.h>
namespace Messages::WebContentServer {
class WebdriverExecuteScriptResponse;
}
namespace WebView {
class WebContentClient;
@ -77,6 +81,8 @@ public:
Gfx::ShareableBitmap take_screenshot() const;
Messages::WebContentServer::WebdriverExecuteScriptResponse webdriver_execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async);
Function<void(Gfx::IntPoint const& screen_position)> on_context_menu_request;
Function<void(const AK::URL&, String const& target, unsigned modifiers)> on_link_click;
Function<void(const AK::URL&, Gfx::IntPoint const& screen_position)> on_link_context_menu_request;