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

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

Issue 428633004: Webkit setting for embedders that do not support fullscreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/FullscreenElementStack.cpp
diff --git a/Source/core/dom/FullscreenElementStack.cpp b/Source/core/dom/FullscreenElementStack.cpp
index c5fc482260612002eba1cabbc9cfbfc5bb253c7c..e717ad34d7582c32120739434dcf9a03aa14c709 100644
--- a/Source/core/dom/FullscreenElementStack.cpp
+++ b/Source/core/dom/FullscreenElementStack.cpp
@@ -148,6 +148,10 @@ void FullscreenElementStack::documentWasDisposed()
void FullscreenElementStack::requestFullScreenForElement(Element& element, RequestType requestType)
{
+ if (!document()->frameHost()->chrome().client().fullscreenEnabled(&element)) {
philipj_slow 2014/07/29 11:22:53 This needs to be in the do { } while(0) loop below
Ignacio Solla 2014/07/29 18:05:58 I have moved this inside the while loop as you rec
+ return;
+ }
+
// Ignore this request if the document is not in a live frame.
if (!document()->isActive())
return;
@@ -262,6 +266,7 @@ void FullscreenElementStack::requestFullScreenForElement(Element& element, Reque
// 5. Return, and run the remaining steps asynchronously.
// 6. Optionally, perform some animation.
m_areKeysEnabledInFullScreen = requestType != PrefixedMozillaRequest && requestType != PrefixedVideoRequest;
+
philipj_slow 2014/07/29 11:22:53 stray newline
Ignacio Solla 2014/07/29 18:05:58 Done.
document()->frameHost()->chrome().client().enterFullScreenForElement(&element);
// 7. Optionally, display a message indicating how the user can exit displaying the context object fullscreen.
« no previous file with comments | « no previous file | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698