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/ElementFullscreen.cpp

Issue 395633011: Implement the unprefixed the Fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 4 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 | « Source/core/dom/ElementFullscreen.h ('k') | Source/core/dom/ElementFullscreen.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementFullscreen.cpp
diff --git a/Source/core/dom/ElementFullscreen.cpp b/Source/core/dom/ElementFullscreen.cpp
index f1dda6ffd1b8f41d076f7f84e6227c14662b1f69..c2650ceee3bf2a0732473d046fb8a6a96993b4be 100644
--- a/Source/core/dom/ElementFullscreen.cpp
+++ b/Source/core/dom/ElementFullscreen.cpp
@@ -9,6 +9,11 @@
namespace blink {
+void ElementFullscreen::requestFullscreen(Element& element)
+{
+ FullscreenElementStack::from(element.document()).requestFullscreen(element, FullscreenElementStack::UnprefixedRequest);
+}
+
void ElementFullscreen::webkitRequestFullscreen(Element& element)
{
FullscreenElementStack::from(element.document()).requestFullscreen(element, FullscreenElementStack::PrefixedRequest);
« no previous file with comments | « Source/core/dom/ElementFullscreen.h ('k') | Source/core/dom/ElementFullscreen.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698