summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/qt/QtPageClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/qt/QtPageClient.h')
-rw-r--r--Source/WebKit2/UIProcess/qt/QtPageClient.h55
1 files changed, 48 insertions, 7 deletions
diff --git a/Source/WebKit2/UIProcess/qt/QtPageClient.h b/Source/WebKit2/UIProcess/qt/QtPageClient.h
index a30b25dd3..3467ceaa9 100644
--- a/Source/WebKit2/UIProcess/qt/QtPageClient.h
+++ b/Source/WebKit2/UIProcess/qt/QtPageClient.h
@@ -22,6 +22,7 @@
#define QtPageClient_h
#include "PageClient.h"
+#include "WebFullScreenManagerProxy.h"
class QQuickWebView;
@@ -33,7 +34,11 @@ class QtWebPageEventHandler;
class DefaultUndoController;
class ShareableBitmap;
-class QtPageClient final : public PageClient {
+class QtPageClient final : public PageClient
+#if ENABLE(FULLSCREEN_API)
+ , public WebFullScreenManagerProxyClient
+#endif
+{
public:
QtPageClient();
~QtPageClient();
@@ -47,13 +52,13 @@ public:
bool isViewFocused() override;
bool isViewVisible() override;
void pageDidRequestScroll(const WebCore::IntPoint&) override;
- void didChangeContentsSize(const WebCore::IntSize&) override;
+ void didChangeContentSize(const WebCore::IntSize&) override;
void didChangeViewportProperties(const WebCore::ViewportAttributes&) override;
- void processDidCrash() override;
+ void processDidExit() override;
void didRelaunchProcess() override;
std::unique_ptr<DrawingAreaProxy> createDrawingAreaProxy() override;
void handleDownloadRequest(DownloadProxy*) override;
- void handleApplicationSchemeRequest(PassRefPtr<QtRefCountedNetworkRequestData>) override;
+ void handleApplicationSchemeRequest(PassRefPtr<QtRefCountedNetworkRequestData>); // QTFIXME
void handleAuthenticationRequiredRequest(const String& hostname, const String& realm, const String& prefilledUsername, String& username, String& password) override;
void handleCertificateVerificationRequest(const String& hostname, bool& ignoreErrors) override;
void handleProxyAuthenticationRequiredRequest(const String& hostname, uint16_t port, const String& prefilledUsername, String& username, String& password) override;
@@ -81,13 +86,13 @@ public:
WebCore::FloatRect convertToDeviceSpace(const WebCore::FloatRect&) override;
WebCore::FloatRect convertToUserSpace(const WebCore::FloatRect&) override;
- WebCore::IntPoint screenToWindow(const WebCore::IntPoint&) override;
- WebCore::IntRect windowToScreen(const WebCore::IntRect&) override;
+ WebCore::IntPoint screenToRootView(const WebCore::IntPoint&) override;
+ WebCore::IntRect rootViewToScreen(const WebCore::IntRect&) override;
void doneWithKeyEvent(const NativeWebKeyboardEvent&, bool wasEventHandled) override { }
RefPtr<WebPopupMenuProxy> createPopupMenuProxy(WebPageProxy&) override;
std::unique_ptr<WebContextMenuProxy> createContextMenuProxy(WebPageProxy&, const ContextMenuContextData&, const UserData&) override;
#if ENABLE(INPUT_TYPE_COLOR)
- virtual PassRefPtr<WebColorPicker> createColorPicker(WebPageProxy*, const WebCore::Color& initialColor, const WebCore::IntRect&);
+ RefPtr<WebColorPicker> createColorPicker(WebPageProxy*, const WebCore::Color& initialColor, const WebCore::IntRect&) override;
#endif
void pageTransitionViewportReady() override;
void didFindZoomableArea(const WebCore::IntPoint&, const WebCore::IntRect&) override;
@@ -100,10 +105,46 @@ public:
void doneWithTouchEvent(const NativeWebTouchEvent&, bool wasEventHandled) override;
#endif
+#if ENABLE(FULLSCREEN_API)
+ WebFullScreenManagerProxyClient& fullScreenManagerProxyClient() final;
+
+ // WebFullScreenManagerProxyClient
+ void closeFullScreenManager() final;
+ bool isFullScreen() final;
+ void enterFullScreen() final;
+ void exitFullScreen() final;
+ void beganEnterFullScreen(const WebCore::IntRect& initialFrame, const WebCore::IntRect& finalFrame) final;
+ void beganExitFullScreen(const WebCore::IntRect& initialFrame, const WebCore::IntRect& finalFrame) final;
+#endif
+
private:
QQuickWebView* m_webView;
QtWebPageEventHandler* m_eventHandler;
DefaultUndoController* m_undoController;
+
+ // PageClient interface
+public:
+ void requestScroll(const WebCore::FloatPoint& scrollPosition, const WebCore::IntPoint& scrollOrigin, bool isProgrammaticScroll) override;
+ void didCommitLoadForMainFrame(const WTF::String& mimeType, bool useCustomContentProvider) override;
+ void willEnterAcceleratedCompositingMode() override;
+ void didFinishLoadingDataForCustomContentProvider(const WTF::String& suggestedFilename, const IPC::DataReference&) override;
+ void navigationGestureDidBegin() override;
+ void navigationGestureWillEnd(bool willNavigate, WebBackForwardListItem&) override;
+ void navigationGestureDidEnd(bool willNavigate, WebBackForwardListItem&) override;
+ void navigationGestureDidEnd() override;
+ void willRecordNavigationSnapshot(WebBackForwardListItem&) override;
+ void didRemoveNavigationGestureSnapshot() override;
+ void didFirstVisuallyNonEmptyLayoutForMainFrame() override;
+ void didFinishLoadForMainFrame() override;
+ void didFailLoadForMainFrame() override;
+ void didSameDocumentNavigationForMainFrame(SameDocumentNavigationType) override;
+ void didChangeBackgroundColor() override;
+ void refView() override;
+ void derefView() override;
+#if ENABLE(VIDEO) && USE(GSTREAMER)
+ bool decidePolicyForInstallMissingMediaPluginsPermissionRequest(InstallMissingMediaPluginsPermissionRequest&) override;
+#endif
+ void didRestoreScrollPosition() override;
};
} // namespace WebKit