summaryrefslogtreecommitdiffstats
path: root/WebKitTools/WebKitTestRunner/PlatformWebView.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/WebKitTestRunner/PlatformWebView.h')
-rw-r--r--WebKitTools/WebKitTestRunner/PlatformWebView.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/WebKitTools/WebKitTestRunner/PlatformWebView.h b/WebKitTools/WebKitTestRunner/PlatformWebView.h
index 29c63ae..72de868 100644
--- a/WebKitTools/WebKitTestRunner/PlatformWebView.h
+++ b/WebKitTools/WebKitTestRunner/PlatformWebView.h
@@ -26,7 +26,14 @@
#ifndef PlatformWebView_h
#define PlatformWebView_h
-#if __APPLE__
+#if defined(BUILDING_QT__)
+namespace WTR {
+class WebView;
+}
+typedef WTR::WebView* PlatformWKView;
+class QMainWindow;
+typedef QMainWindow* PlatformWindow;
+#elif defined(__APPLE__) && __APPLE__
#if __OBJC__
@class WKView;
@class NSWindow;
@@ -53,6 +60,9 @@ public:
void resizeTo(unsigned width, unsigned height);
void focus();
+ WKRect windowFrame();
+ void setWindowFrame(WKRect);
+
private:
PlatformWKView m_view;
PlatformWindow m_window;