WebFullScreenManager.h [plain text]
#ifndef WebFullScreenManager_h
#define WebFullScreenManager_h
#if ENABLE(FULLSCREEN_API)
#include <WebCore/IntRect.h>
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
namespace IPC {
class Connection;
class Decoder;
}
namespace WebCore {
class IntRect;
class Element;
class GraphicsLayer;
}
namespace WebKit {
class WebPage;
class WebFullScreenManager : public RefCounted<WebFullScreenManager> {
public:
static Ref<WebFullScreenManager> create(WebPage*);
virtual ~WebFullScreenManager();
void didReceiveMessage(IPC::Connection&, IPC::Decoder&);
bool supportsFullScreen(bool withKeyboard);
void enterFullScreenForElement(WebCore::Element*);
void exitFullScreenForElement(WebCore::Element*);
void willEnterFullScreen();
void didEnterFullScreen();
void willExitFullScreen();
void didExitFullScreen();
WebCore::Element* element();
void close();
protected:
WebFullScreenManager(WebPage*);
void setAnimatingFullScreen(bool);
void requestExitFullScreen();
void saveScrollPosition();
void restoreScrollPosition();
void didReceiveWebFullScreenManagerMessage(IPC::Connection&, IPC::Decoder&);
WebCore::IntRect m_initialFrame;
WebCore::IntRect m_finalFrame;
WebCore::IntPoint m_scrollPosition;
float m_topContentInset;
RefPtr<WebPage> m_page;
RefPtr<WebCore::Element> m_element;
};
}
#endif // ENABLE(FULLSCREEN_API)
#endif // WebFullScreenManager_h