diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-09 09:56:20 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-09 19:59:26 +0000 |
commit | b57d7e43326437d143708dd18025533cd8b0d8c6 (patch) | |
tree | 9d1997d968a3bedadd25c727ded423a06bf3cb54 /Userland/Applications/Browser/WebDriverConnection.cpp | |
parent | 9505928fdbd9fd15a201f0371f475c9851a67b83 (diff) | |
download | serenity-b57d7e43326437d143708dd18025533cd8b0d8c6.zip |
Browser+WebContent+WebDriver: Move Get/Set Window Rect to WebContent
This also lets us more fully implement the "restore the window" method,
which requires we block until the document reaches the "visible" state.
Diffstat (limited to 'Userland/Applications/Browser/WebDriverConnection.cpp')
-rw-r--r-- | Userland/Applications/Browser/WebDriverConnection.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Userland/Applications/Browser/WebDriverConnection.cpp b/Userland/Applications/Browser/WebDriverConnection.cpp index 8b516ae28e..4f24227c6f 100644 --- a/Userland/Applications/Browser/WebDriverConnection.cpp +++ b/Userland/Applications/Browser/WebDriverConnection.cpp @@ -75,20 +75,6 @@ void WebDriverConnection::restore_window() } } -void WebDriverConnection::set_window_size(Gfx::IntSize const& size) -{ - dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: set_window_size {}", size); - if (auto browser_window = m_browser_window.strong_ref()) - browser_window->resize(size); -} - -void WebDriverConnection::set_window_position(Gfx::IntPoint const& position) -{ - dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: set_window_position {}", position); - if (auto browser_window = m_browser_window.strong_ref()) - browser_window->move_to(position); -} - void WebDriverConnection::maximize_window() { dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: maximize_window"); |