WebFullScreenManagerProxy.h [plain text]
#ifndef WebFullScreenManagerProxy_h
#define WebFullScreenManagerProxy_h
#if ENABLE(FULLSCREEN_API)
#include "Connection.h"
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
namespace CoreIPC {
class ArgumentDecoder;
class Connection;
class MessageID;
}
namespace WebCore {
class IntRect;
}
#if PLATFORM(MAC)
OBJC_CLASS WKView;
#elif PLATFORM(GTK)
typedef struct _WebKitWebViewBase WebKitWebViewBase;
#elif PLATFORM(QT)
class QQuickWebView;
#endif
namespace WebKit {
#if PLATFORM(MAC)
typedef WKView PlatformWebView;
#elif PLATFORM(WIN)
class WebView;
typedef WebView PlatformWebView;
#elif PLATFORM(QT)
typedef QQuickWebView PlatformWebView;
#elif PLATFORM(GTK)
typedef WebKitWebViewBase PlatformWebView;
#elif PLATFORM(EFL)
typedef Evas_Object PlatformWebView;
#endif
class WebPageProxy;
class LayerTreeContext;
class WebFullScreenManagerProxy : public RefCounted<WebFullScreenManagerProxy> {
public:
static PassRefPtr<WebFullScreenManagerProxy> create(WebPageProxy*);
virtual ~WebFullScreenManagerProxy();
void invalidate();
void setWebView(PlatformWebView*);
bool isFullScreen();
void close();
void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
void didReceiveSyncMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder* arguments, OwnPtr<CoreIPC::ArgumentEncoder>& reply);
void willEnterFullScreen();
void didEnterFullScreen();
void willExitFullScreen();
void didExitFullScreen();
void setAnimatingFullScreen(bool);
void requestExitFullScreen();
private:
WebFullScreenManagerProxy(WebPageProxy*);
void supportsFullScreen(bool withKeyboard, bool&);
void enterFullScreen();
void exitFullScreen();
void beganEnterFullScreen(const WebCore::IntRect& initialFrame, const WebCore::IntRect& finalFrame);
void beganExitFullScreen(const WebCore::IntRect& initialFrame, const WebCore::IntRect& finalFrame);
WebPageProxy* m_page;
PlatformWebView* m_webView;
void didReceiveWebFullScreenManagerProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*);
void didReceiveSyncWebFullScreenManagerProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder* arguments, OwnPtr<CoreIPC::ArgumentEncoder>& reply);
};
}
#endif // ENABLE(FULLSCREEN_API)
#endif // WebFullScreenManagerProxy_h