WebFullScreenManagerProxyQt.cpp [plain text]
#include "config.h"
#include "WebFullScreenManagerProxy.h"
#if ENABLE(FULLSCREEN_API)
#include "WebContext.h"
#include "WebFullScreenManagerMessages.h"
#include "WebFullScreenManagerProxyMessages.h"
#include "WebProcess.h"
#include <WebCore/NotImplemented.h>
#if HAVE(QTQUICK)
#include "qquickwebview_p.h"
#endif
using namespace WebCore;
namespace WebKit {
void WebFullScreenManagerProxy::invalidate()
{
#if HAVE(QTQUICK)
m_webView = 0;
#endif
}
void WebFullScreenManagerProxy::close()
{
notImplemented();
}
bool WebFullScreenManagerProxy::isFullScreen()
{
notImplemented();
return false;
}
void WebFullScreenManagerProxy::enterFullScreen()
{
willEnterFullScreen();
#if HAVE(QTQUICK)
emit m_webView->experimental()->enterFullScreenRequested();
#endif
didEnterFullScreen();
}
void WebFullScreenManagerProxy::exitFullScreen()
{
willExitFullScreen();
#if HAVE(QTQUICK)
emit m_webView->experimental()->exitFullScreenRequested();
#endif
didExitFullScreen();
}
void WebFullScreenManagerProxy::beganEnterFullScreen(const IntRect& initialFrame, const IntRect& finalFrame)
{
notImplemented();
}
void WebFullScreenManagerProxy::beganExitFullScreen(const IntRect& initialFrame, const IntRect& finalFrame)
{
notImplemented();
}
}
#endif // ENABLE(FULLSCREEN_API)