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

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

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed the java enum comment Created 4 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 1dd34866f725d64668bf7815fc52753f20e36e10..7439071c67543d24628fb4685afc03f41d4d3b28 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -144,6 +144,7 @@
#include "public/platform/WebConnectionType.h"
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "public/platform/WebLayer.h"
+#include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h"
#include "wtf/InstanceCounter.h"
#include "wtf/PtrUtil.h"
#include "wtf/dtoa.h"
@@ -2194,7 +2195,9 @@ void Internals::mediaPlayerRemoteRouteAvailabilityChanged(
HTMLMediaElement* mediaElement,
bool available) {
ASSERT(mediaElement);
- mediaElement->remoteRouteAvailabilityChanged(available);
+ mediaElement->remoteRouteAvailabilityChanged(
+ available ? WebRemotePlaybackAvailability::DeviceAvailable
+ : WebRemotePlaybackAvailability::SourceNotSupported);
}
void Internals::mediaPlayerPlayingRemotelyChanged(

Powered by Google App Engine
This is Rietveld 408576698