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

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

Issue 1370723002: Include viewport visibility checks for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased. Created 5 years, 1 month 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 ac28254cd852aee01b57f7372e8e80b0406f8e84..980f33aa210609a2dc9eb0c08ff41aa2e52a4cab 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -257,6 +257,10 @@ public:
virtual bool isHTMLAudioElement() const { return false; }
virtual bool isHTMLVideoElement() const { return false; }
+ // Temporary callback for crbug.com/487345,402044
+ void notifyPositionMayHaveChanged(const IntRect&);
+ void updatePositionNotificationRegistration();
+
protected:
HTMLMediaElement(const QualifiedName&, Document&);
~HTMLMediaElement() override;
@@ -446,6 +450,9 @@ private:
void audioTracksTimerFired(Timer<HTMLMediaElement>*);
+ // TODO(liberato): remove once autoplay gesture override experiment concludes.
+ void triggerAutoplayViewportCheckForTesting();
+
Timer<HTMLMediaElement> m_loadTimer;
Timer<HTMLMediaElement> m_progressEventTimer;
Timer<HTMLMediaElement> m_playbackProgressTimer;

Powered by Google App Engine
This is Rietveld 408576698