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

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: rebase 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.idl ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebElement.cpp
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp
index d6300d8b79c7c484ebf224f9b89d8ac968686dbb..96a7fbd865c64308fbb4a3dd30e2ff86d34dbdd8 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()).requestFullscreen(*element, FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest);
}
WebRect WebElement::boundsInViewportSpace()
« no previous file with comments | « Source/core/dom/ElementFullscreen.idl ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698