1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:37:44 +00:00

Browser+WebContent+WebDriver: Move Get Title to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 13:50:43 -05:00 committed by Linus Groh
parent 7f142745e2
commit 2c9549cb76
9 changed files with 18 additions and 27 deletions

View file

@ -27,12 +27,4 @@ void WebDriverConnection::quit()
browser_window->close();
}
Messages::WebDriverSessionClient::GetTitleResponse WebDriverConnection::get_title()
{
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_title");
if (auto browser_window = m_browser_window.strong_ref())
return { browser_window->active_tab().title() };
return { "" };
}
}

View file

@ -38,7 +38,6 @@ public:
virtual void die() override { }
virtual void quit() override;
virtual Messages::WebDriverSessionClient::GetTitleResponse get_title() override;
private:
WebDriverConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, NonnullRefPtr<BrowserWindow> browser_window);

View file

@ -13,6 +13,4 @@
endpoint WebDriverSessionClient {
quit() =|
get_title() => (String title)
}