1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

Browser+WebContent+WebDriver: Move Back, Forward, Refresh to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 13:46:22 -05:00 committed by Linus Groh
parent 24fb7cd0ad
commit 7f142745e2
10 changed files with 77 additions and 101 deletions

View file

@ -35,25 +35,4 @@ Messages::WebDriverSessionClient::GetTitleResponse WebDriverConnection::get_titl
return { "" };
}
void WebDriverConnection::refresh()
{
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: refresh");
if (auto browser_window = m_browser_window.strong_ref())
browser_window->active_tab().reload();
}
void WebDriverConnection::back()
{
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: back");
if (auto browser_window = m_browser_window.strong_ref())
browser_window->active_tab().go_back();
}
void WebDriverConnection::forward()
{
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: forward");
if (auto browser_window = m_browser_window.strong_ref())
browser_window->active_tab().go_forward();
}
}