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

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

Issue 1522463003: Refactor resource load and resource selection algorithms as per spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests using internals.idl Created 4 years, 9 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 12f24bfed2be67659661d6b914e3efa236e2a7c2..4dea1a9a06e53648a485a38d64b0b51d8b835608 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1867,6 +1867,12 @@ double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement)
return mediaElement->effectiveMediaVolume();
}
+unsigned short Internals::effectivePreloadType(HTMLMediaElement* mediaElement)
+{
+ ASSERT(mediaElement);
+ return static_cast<unsigned short>(mediaElement->effectivePreloadType());
philipj_slow 2016/03/14 13:03:15 Can you call if just effectivePreload and return a
Srirama 2016/03/14 15:12:54 Done.
+}
+
void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* mediaElement, bool available)
{
ASSERT(mediaElement);

Powered by Google App Engine
This is Rietveld 408576698