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

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

Issue 356933002: Introduce FullscreenElementStack::RequestType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/Element.h ('k') | Source/core/dom/FullscreenElementStack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index da33f26b5e37b125e42942e8c6ab43d2684a74a3..00640104fdb990dca72713e154c5e5a1d0a1ab36 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2666,12 +2666,17 @@ void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
void Element::webkitRequestFullscreen()
{
- FullscreenElementStack::from(document()).requestFullScreenForElement(*this, ALLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequirement);
+ FullscreenElementStack::from(document()).requestFullScreenForElement(*this, FullscreenElementStack::PrefixedRequest);
}
void Element::webkitRequestFullScreen(unsigned short flags)
{
- FullscreenElementStack::from(document()).requestFullScreenForElement(*this, (flags | LEGACY_MOZILLA_REQUEST), FullscreenElementStack::EnforceIFrameAllowFullScreenRequirement);
+ FullscreenElementStack::RequestType requestType;
+ if (flags & ALLOW_KEYBOARD_INPUT)
+ requestType = FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest;
+ else
+ requestType = FullscreenElementStack::PrefixedMozillaRequest;
+ FullscreenElementStack::from(document()).requestFullScreenForElement(*this, requestType);
}
void Element::setContainsFullScreenElement(bool flag)
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/FullscreenElementStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698