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:
parent
24fb7cd0ad
commit
7f142745e2
10 changed files with 77 additions and 101 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue