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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 178003008: Remove the HTMLVideoElement-specific prefixed fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm negative test Created 6 years, 10 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/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index d00dfb711b10bf71afeaaed4a37e908c6c72a315..88f2077ec307be6f144ef67c07e2cb6745518152 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -317,8 +317,6 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document& docum
if (document.settings()) {
if (document.settings()->mediaPlaybackRequiresUserGesture())
addBehaviorRestriction(RequireUserGestureForPlayRestriction);
- if (document.settings()->mediaFullscreenRequiresUserGesture())
- addBehaviorRestriction(RequireUserGestureForFullscreenRestriction);
}
// We must always have a ShadowRoot so children like <source> will not render
@@ -3457,14 +3455,6 @@ void HTMLMediaElement::enterFullscreen()
FullscreenElementStack::from(document()).requestFullScreenForElement(this, 0, FullscreenElementStack::ExemptIFrameAllowFullScreenRequirement);
}
-void HTMLMediaElement::exitFullscreen()
-{
- WTF_LOG(Media, "HTMLMediaElement::exitFullscreen");
-
- if (document().settings() && document().settings()->fullScreenEnabled() && isFullscreen())
- FullscreenElementStack::from(document()).webkitCancelFullScreen();
-}
-
void HTMLMediaElement::didBecomeFullscreenElement()
{
if (hasMediaControls())
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698