diff options
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 5 | ||||
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.h | 1 | ||||
-rw-r--r-- | Userland/Services/WebContent/WebContentServer.ipc | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index 4e77df6bc8..e321205b7b 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -61,6 +61,11 @@ Web::Page const& ConnectionFromClient::page() const return m_page_host->page(); } +Messages::WebContentServer::GetWindowHandleResponse ConnectionFromClient::get_window_handle() +{ + return m_page_host->page().top_level_browsing_context().window_handle(); +} + void ConnectionFromClient::connect_to_webdriver(DeprecatedString const& webdriver_ipc_path) { // FIXME: Propagate this error back to the browser. diff --git a/Userland/Services/WebContent/ConnectionFromClient.h b/Userland/Services/WebContent/ConnectionFromClient.h index d5aab3ab1d..e9124dd3ee 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.h +++ b/Userland/Services/WebContent/ConnectionFromClient.h @@ -48,6 +48,7 @@ private: Web::Page& page(); Web::Page const& page() const; + virtual Messages::WebContentServer::GetWindowHandleResponse get_window_handle() override; virtual void connect_to_webdriver(DeprecatedString const& webdriver_ipc_path) override; virtual void update_system_theme(Core::AnonymousBuffer const&) override; virtual void update_system_fonts(DeprecatedString const&, DeprecatedString const&, DeprecatedString const&) override; diff --git a/Userland/Services/WebContent/WebContentServer.ipc b/Userland/Services/WebContent/WebContentServer.ipc index 36127181ba..85cf2aead5 100644 --- a/Userland/Services/WebContent/WebContentServer.ipc +++ b/Userland/Services/WebContent/WebContentServer.ipc @@ -9,6 +9,8 @@ endpoint WebContentServer { + get_window_handle() => (String handle) + connect_to_webdriver(DeprecatedString webdriver_ipc_path) =| update_system_theme(Core::AnonymousBuffer theme_buffer) =| |