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

Unified Diff: Source/core/html/HTMLVideoElement.h

Issue 31203002: Add UseCounters for prefixed HTMLVideoElement APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « no previous file | 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/HTMLVideoElement.h
diff --git a/Source/core/html/HTMLVideoElement.h b/Source/core/html/HTMLVideoElement.h
index f9537c8b52389cad3a84b53ebeaae5128f8672af..d2a7732304173f858a5880ee5bbba0d00153ba8d 100644
--- a/Source/core/html/HTMLVideoElement.h
+++ b/Source/core/html/HTMLVideoElement.h
@@ -27,6 +27,7 @@
#define HTMLVideoElement_h
#include "core/html/HTMLMediaElement.h"
+#include "core/page/UseCounter.h"
namespace WebCore {
@@ -45,15 +46,17 @@ public:
unsigned videoHeight() const;
// Fullscreen
- void webkitEnterFullscreen(ExceptionState&);
- void webkitExitFullscreen();
+ void webkitEnterFullscreen(ExceptionState&, UseCounter::Feature);
+ void webkitExitFullscreen(UseCounter::Feature);
+ void webkitEnterFullscreen(ExceptionState& es) { webkitEnterFullscreen(es, UseCounter::PrefixedVideoEnterFullscreen); }
+ void webkitExitFullscreen() { webkitExitFullscreen(UseCounter::PrefixedVideoExitFullscreen); }
bool webkitSupportsFullscreen();
bool webkitDisplayingFullscreen();
// FIXME: Maintain "FullScreen" capitalization scheme for backwards compatibility.
// https://bugs.webkit.org/show_bug.cgi?id=36081
- void webkitEnterFullScreen(ExceptionState& es) { webkitEnterFullscreen(es); }
- void webkitExitFullScreen() { webkitExitFullscreen(); }
+ void webkitEnterFullScreen(ExceptionState& es) { webkitEnterFullscreen(es, UseCounter::PrefixedVideoEnterFullScreen); }
+ void webkitExitFullScreen() { webkitExitFullscreen(UseCounter::PrefixedVideoExitFullScreen); }
// Statistics
unsigned webkitDecodedFrameCount() const;
« no previous file with comments | « no previous file | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698