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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2051253002: Start autoplay muted videos with autoplay attribute when they are visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 7166e16b7b77219112ef637d722341500351034d..3427118e973c94aed0265cde870905b8989b6472 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -47,6 +47,7 @@ class AudioSourceProviderClient;
class AudioTrackList;
class ContentType;
class CueTimeline;
+class ElementVisibilityObserver;
class EnumerationHistogram;
class Event;
class ExceptionState;
@@ -487,6 +488,8 @@ private:
void recordAutoplaySourceMetric(int source);
+ void visibilityChangedForAutoplay(bool visibility);
+
UnthrottledTimer<HTMLMediaElement> m_loadTimer;
UnthrottledTimer<HTMLMediaElement> m_progressEventTimer;
UnthrottledTimer<HTMLMediaElement> m_playbackProgressTimer;
@@ -664,6 +667,9 @@ private:
WebRemotePlaybackClient* m_remotePlaybackClient;
+ // class AutoplayVisibilityObserver;
+ Member<ElementVisibilityObserver> m_autoplayVisibilityObserver;
+
static URLRegistry* s_mediaStreamRegistry;
};

Powered by Google App Engine
This is Rietveld 408576698