diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp b/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp index bea1aebac..91d962e90 100644 --- a/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp +++ b/Source/WebKit2/UIProcess/qt/WebFullScreenManagerProxyQt.cpp @@ -26,7 +26,7 @@ #include "WebFullScreenManagerMessages.h" #include "WebFullScreenManagerProxyMessages.h" #include "WebProcess.h" - +#include "qquickwebview_p.h" #include <WebCore/NotImplemented.h> using namespace WebCore; @@ -38,14 +38,29 @@ void WebFullScreenManagerProxy::invalidate() m_webView = 0; } -void WebFullScreenManagerProxy::enterFullScreen() +void WebFullScreenManagerProxy::close() { notImplemented(); } -void WebFullScreenManagerProxy::exitFullScreen() +bool WebFullScreenManagerProxy::isFullScreen() { notImplemented(); + return false; +} + +void WebFullScreenManagerProxy::enterFullScreen() +{ + willEnterFullScreen(); + emit m_webView->experimental()->enterFullScreenRequested(); + didEnterFullScreen(); +} + +void WebFullScreenManagerProxy::exitFullScreen() +{ + willExitFullScreen(); + emit m_webView->experimental()->exitFullScreenRequested(); + didExitFullScreen(); } void WebFullScreenManagerProxy::beganEnterFullScreen(const IntRect& initialFrame, const IntRect& finalFrame) |