Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / DocumentFullscreen.h
index 01a5ac9..341cfac 100644 (file)
 #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