Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Unified Diff: Source/core/dom/DocumentFullscreen.h

Issue 395633011: Implement the unprefixed the Fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/DocumentFullscreen.cpp » ('j') | Source/core/dom/FullscreenElementStack.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentFullscreen.h
diff --git a/Source/core/dom/DocumentFullscreen.h b/Source/core/dom/DocumentFullscreen.h
index 01a5ac96cf68b2be884aac7d65f691e6d655e7b6..0ddd97ad995fff34982e9d56b2feaee978b2eb6e 100644
--- a/Source/core/dom/DocumentFullscreen.h
+++ b/Source/core/dom/DocumentFullscreen.h
@@ -26,6 +26,8 @@
#ifndef DocumentFullscreen_h
#define DocumentFullscreen_h
+#include "core/events/EventTarget.h"
+
namespace WebCore {
class Document;
@@ -33,14 +35,18 @@ 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&);
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/dom/DocumentFullscreen.cpp » ('j') | Source/core/dom/FullscreenElementStack.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698