#ifndef DocumentFullscreen_h
#define DocumentFullscreen_h
-namespace WebCore {
+#include "core/events/EventTarget.h"
+
+namespace blink {
class Document;
class Element;
class DocumentFullscreen {
public:
+ static bool fullscreenEnabled(Document&);
+ static Element* fullscreenElement(Document&);
+ static void exitFullscreen(Document&);
+
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(fullscreenchange);
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(fullscreenerror);
+
+ // Mozilla version
static bool webkitIsFullScreen(Document&);
static bool webkitFullScreenKeyboardInputAllowed(Document&);
static Element* webkitCurrentFullScreenElement(Document&);
- static void webkitCancelFullScreen(Document&);
- static bool webkitFullscreenEnabled(Document&);
- static Element* webkitFullscreenElement(Document&);
- static void webkitExitFullscreen(Document&);
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange);
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror);
};
-} // namespace WebCore
+} // namespace blink
#endif // DocumentFullscreen_h