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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2565203002: Add a requestFullscreen variant with a default (prefixed) type (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index d9b535d7ad42cf252b18ac9926592890bd77510c..1bef144d1c13cec73f9abf79bc0fce29a37ef277 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -255,12 +255,12 @@ bool HTMLVideoElement::hasAvailableVideoFrame() const {
void HTMLVideoElement::webkitEnterFullscreen() {
if (!isFullscreen())
- enterFullscreen();
+ Fullscreen::requestFullscreen(*this, Fullscreen::RequestType::Prefixed);
}
void HTMLVideoElement::webkitExitFullscreen() {
if (isFullscreen())
- exitFullscreen();
+ Fullscreen::exitFullscreen(document());
}
bool HTMLVideoElement::webkitSupportsFullscreen() {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698