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

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

Issue 1417683004: Media controls refer to less magic state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...because NeedsRebaseline is not a platform type. Created 5 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
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 d124861ed419e3e543b309228fa97fa55e802566..31c13dedd144d31500a09346bb16a47d97203155 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2561,4 +2561,10 @@ double Internals::monotonicTimeToZeroBasedDocumentTime(double platformTime, Exce
return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(platformTime);
}
+void Internals::setMediaElementNetworkState(HTMLMediaElement* mediaElement, double state)
+{
+ ASSERT(mediaElement);
+ mediaElement->setNetworkState((WebMediaPlayer::NetworkState)((int)state));
philipj_slow 2015/10/28 15:14:02 Use static_cast and first assert that state is in
liberato (no reviews please) 2015/10/29 16:10:26 Done.
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698