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

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

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
Index: Source/core/dom/DocumentFullscreen.cpp
diff --git a/Source/core/dom/DocumentFullscreen.cpp b/Source/core/dom/DocumentFullscreen.cpp
index 29ced8058a419498aa28d217110e30b8ce48ffc4..a891999d48471fde8f4478295d7ff0363b6eaa05 100644
--- a/Source/core/dom/DocumentFullscreen.cpp
+++ b/Source/core/dom/DocumentFullscreen.cpp
@@ -30,6 +30,23 @@
namespace WebCore {
+bool DocumentFullscreen::fullscreenEnabled(Document& document)
+{
+ return FullscreenElementStack::fullscreenEnabled(document);
+}
+
+Element* DocumentFullscreen::fullscreenElement(Document& document)
+{
+ if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(document))
+ return fullscreen->fullscreenElement();
+ return 0;
+}
+
+void DocumentFullscreen::exitFullscreen(Document& document)
+{
+ FullscreenElementStack::from(document).exitFullscreen();
+}
+
bool DocumentFullscreen::webkitIsFullScreen(Document& document)
{
if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(document))
@@ -56,21 +73,4 @@ void DocumentFullscreen::webkitCancelFullScreen(Document& document)
FullscreenElementStack::from(document).fullyExitFullscreen();
}
-bool DocumentFullscreen::webkitFullscreenEnabled(Document& document)
-{
- return FullscreenElementStack::fullscreenEnabled(document);
-}
-
-Element* DocumentFullscreen::webkitFullscreenElement(Document& document)
-{
- if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(document))
- return fullscreen->fullscreenElement();
- return 0;
-}
-
-void DocumentFullscreen::webkitExitFullscreen(Document& document)
-{
- FullscreenElementStack::from(document).exitFullscreen();
-}
-
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698