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

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

Issue 1058783006: Remove the allowfullscreen exemption for the video-specific fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: consistent quotes Created 5 years, 8 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.cpp » ('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 da7853cfc18aaa7d90ea7b7a0f377d2759acf9dd..062dc701ce583690729613c8a4b628c751280618 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -2781,7 +2781,7 @@ void HTMLMediaElement::mediaPlayerRequestFullscreen()
// user interaction or when it is technically required to play the video.
UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture);
- enterFullscreen();
+ Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::InternalVideoRequest);
}
void HTMLMediaElement::mediaPlayerRequestSeek(double time)
@@ -3139,20 +3139,6 @@ bool HTMLMediaElement::isFullscreen() const
return Fullscreen::isActiveFullScreenElement(*this);
}
-void HTMLMediaElement::enterFullscreen()
-{
- WTF_LOG(Media, "HTMLMediaElement::enterFullscreen(%p)", this);
-
- Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::PrefixedVideoRequest);
-}
-
-void HTMLMediaElement::exitFullscreen()
-{
- WTF_LOG(Media, "HTMLMediaElement::exitFullscreen(%p)", this);
-
- Fullscreen::from(document()).exitFullscreen();
-}
-
void HTMLMediaElement::didBecomeFullscreenElement()
{
if (mediaControls())
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698