summaryrefslogtreecommitdiffstats
path: root/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp')
-rw-r--r--Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp b/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp
index dede4b2..01a76eb 100644
--- a/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp
+++ b/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp
@@ -72,11 +72,16 @@ PlatformWebView::~PlatformWebView()
WKRelease(m_view);
}
-WKPageRef PlatformWebView::page()
+WKPageRef PlatformWebView::page() const
{
return WKViewGetPage(m_view);
}
+void PlatformWebView::resizeTo(unsigned width, unsigned height)
+{
+ ::SetWindowPos(WKViewGetWindow(m_view), 0, 0, 0, width, height, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS);
+}
+
void PlatformWebView::simulateSpacebarKeyPress()
{
HWND window = WKViewGetWindow(m_view);