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

Unified Diff: third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed failing tests 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/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h
diff --git a/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h b/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h
index 6131d9eb2a93b6c9c915efd8757b43d3a9805d9d..23f942ce88a592daf6717771d70cb76a0c71f793 100644
--- a/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h
+++ b/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h
@@ -19,10 +19,14 @@ class WebRemotePlaybackClient {
virtual void stateChanged(WebRemotePlaybackState) = 0;
// Notifies the client of the remote playback device availability change.
- virtual void availabilityChanged(bool availability) = 0;
+ virtual void availabilityChanged(bool isRouteAvailable,
+ bool isSourceCompatible) = 0;
dcheng 2016/11/08 07:40:00 Let's pass enums instead of bools; it makes the ca
whywhat 2016/11/09 01:38:11 Done.
// Notifies the client that the user cancelled the prompt shown via the API.
virtual void promptCancelled() = 0;
+
+ // Returns if the remote playback available for this media element.
+ virtual bool remotePlaybackAvailable() const = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698