diff options
Diffstat (limited to 'WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp')
-rw-r--r-- | WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp b/WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp index e602d0e..deed4ab 100644 --- a/WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp +++ b/WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp @@ -65,7 +65,7 @@ PlatformWebView::~PlatformWebView() void PlatformWebView::resizeTo(unsigned width, unsigned height) { - // Implement + ::SetWindowPos(WKViewGetWindow(m_view), 0, 0, 0, width, height, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS); } WKPageRef PlatformWebView::page() @@ -73,4 +73,9 @@ WKPageRef PlatformWebView::page() return WKViewGetPage(m_view); } +void PlatformWebView::focus() +{ + ::SetFocus(::WKViewGetWindow(m_view)); +} + } // namespace WTR |