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

Unified Diff: Source/core/frame/UseCounter.cpp

Issue 139313007: Deprecate HTMLVideoElement-specific prefixed fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update tests Created 6 years, 11 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/core/frame/UseCounter.cpp
diff --git a/Source/core/frame/UseCounter.cpp b/Source/core/frame/UseCounter.cpp
index 07b07f83c8eb293555ecefe6e48b9d55a4fc1a30..c9e955daf50f05bf8cf9b2e67cd65d0f7553c344 100644
--- a/Source/core/frame/UseCounter.cpp
+++ b/Source/core/frame/UseCounter.cpp
@@ -691,6 +691,24 @@ String UseCounter::deprecationMessage(Feature feature)
case TextTrackCueConstructor:
return "The 'TextTrackCue' constructor is deprecated. Please use 'VTTCue' instead.";
+ case PrefixedVideoSupportsFullscreen:
+ return "'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Its value is true if the video is loaded.";
+
+ case PrefixedVideoDisplayingFullscreen:
+ return "'HTMLVideoElement.webkitDisplayingFullscreen' is deprecated. Please use the 'fullscreenchange' and 'webkitfullscreenchange' events instead.";
+
+ case PrefixedVideoEnterFullscreen:
+ return "'HTMLVideoElement.webkitEnterFullscreen()' is deprecated. Please use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' instead.";
+
+ case PrefixedVideoExitFullscreen:
+ return "'HTMLVideoElement.webkitExitFullscreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead.";
+
+ case PrefixedVideoEnterFullScreen:
+ return "'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Please use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' instead.";
+
+ case PrefixedVideoExitFullScreen:
+ return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead.";
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();
« no previous file with comments | « LayoutTests/media/video-play-require-user-gesture-expected.txt ('k') | Source/core/html/HTMLVideoElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698