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

Unified Diff: Source/web/WebElement.cpp

Issue 449133003: Move Web-facing fullscreen APIs to DocumentFullscreen and ElementFullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/web/WebElement.cpp
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp
index d6300d8b79c7c484ebf224f9b89d8ac968686dbb..3bb7f30150e5fbfd31ef00f966ec6055f4f35dd1 100644
--- a/Source/web/WebElement.cpp
+++ b/Source/web/WebElement.cpp
@@ -33,6 +33,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/Element.h"
+#include "core/dom/FullscreenElementStack.h"
#include "core/dom/NamedNodeMap.h"
#include "core/dom/custom/CustomElementCallbackDispatcher.h"
#include "core/dom/shadow/ShadowRoot.h"
@@ -142,7 +143,8 @@ WebString WebElement::computeInheritedLanguage() const
void WebElement::requestFullScreen()
{
- unwrap<Element>()->webkitRequestFullScreen(Element::ALLOW_KEYBOARD_INPUT);
+ Element* element = unwrap<Element>();
+ FullscreenElementStack::from(element->document()).requestFullScreenForElement(*element, FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest);
}
WebRect WebElement::boundsInViewportSpace()

Powered by Google App Engine
This is Rietveld 408576698