mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +00:00
Browser: Remove unused WebDriver IPC endpoints
I had originally thought to just leave these and remove them all at once at the end of the WebContent migration. But it is kind of confusing to have them around, so this removes the endpoints that have already been ported.
This commit is contained in:
parent
75c359ef31
commit
71aba39562
Notes:
sideshowbarker
2024-07-17 06:35:16 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/71aba39562 Pull-request: https://github.com/SerenityOS/serenity/pull/15993 Reviewed-by: https://github.com/linusg ✅
3 changed files with 0 additions and 19 deletions
|
@ -29,21 +29,6 @@ void WebDriverConnection::quit()
|
|||
browser_window->close();
|
||||
}
|
||||
|
||||
Messages::WebDriverSessionClient::GetUrlResponse WebDriverConnection::get_url()
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_url");
|
||||
if (auto browser_window = m_browser_window.strong_ref())
|
||||
return { browser_window->active_tab().url() };
|
||||
return { URL("") };
|
||||
}
|
||||
|
||||
void WebDriverConnection::set_url(AK::URL const& url)
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: set_url {}", url);
|
||||
if (auto browser_window = m_browser_window.strong_ref())
|
||||
browser_window->active_tab().load(url);
|
||||
}
|
||||
|
||||
Messages::WebDriverSessionClient::GetTitleResponse WebDriverConnection::get_title()
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_title");
|
||||
|
|
|
@ -38,8 +38,6 @@ public:
|
|||
virtual void die() override { }
|
||||
|
||||
virtual void quit() override;
|
||||
virtual Messages::WebDriverSessionClient::GetUrlResponse get_url() override;
|
||||
virtual void set_url(AK::URL const& url) override;
|
||||
virtual Messages::WebDriverSessionClient::GetTitleResponse get_title() override;
|
||||
virtual void refresh() override;
|
||||
virtual void back() override;
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
endpoint WebDriverSessionClient {
|
||||
quit() =|
|
||||
|
||||
get_url() => (URL url)
|
||||
set_url(URL url) =|
|
||||
get_title() => (String title)
|
||||
refresh() =|
|
||||
back() =|
|
||||
|
|
Loading…
Reference in a new issue