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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index a7c18c2036d87cdca8c8e8720a8d28609da1d9c7..1b704fef525a4712436a5dc8450d2a1f5907ff91 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2569,4 +2569,10 @@ void Internals::setMediaElementNetworkState(HTMLMediaElement* mediaElement, int
mediaElement->setNetworkState(static_cast<WebMediaPlayer::NetworkState>(state));
}
+// TODO(liberato): remove once autoplay gesture override experiment concludes.
+void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element)
+{
+ element->triggerAutoplayViewportCheckForTesting();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698