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

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

Issue 650893002: [Cast] Disable autohide of media controls for remote playback (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added LayoutTest Created 6 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: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 07492b2185b2ff811fe99dc8d7760e4691208f83..4d905bdf4c91e233e7ac6516338196035415af08 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1768,6 +1768,14 @@ void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi
mediaElement->remoteRouteAvailabilityChanged(available);
}
+void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement, bool remote)
+{
+ if (remote)
+ mediaElement->connectedToRemoteDevice();
+ else
+ mediaElement->disconnectedFromRemoteDevice();
+}
+
void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme)
{
SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme);

Powered by Google App Engine
This is Rietveld 408576698