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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/interfaces/remoteplayback.idl

Issue 2862423002: [RemotePlayback] Added IDL harness WebPlatform test for RemotePlayback API. (Closed)
Patch Set: Added the harness test files back Created 3 years, 7 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/LayoutTests/external/wpt/interfaces/remoteplayback.idl
diff --git a/third_party/WebKit/LayoutTests/external/wpt/interfaces/remoteplayback.idl b/third_party/WebKit/LayoutTests/external/wpt/interfaces/remoteplayback.idl
new file mode 100644
index 0000000000000000000000000000000000000000..f78e0d6b0749516db708c620f73137a0ab9e3287
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/interfaces/remoteplayback.idl
@@ -0,0 +1,27 @@
+interface HTMLMediaElement : HTMLElement {};
foolip 2017/05/09 15:23:09 These shouldn't be in this file, they should go in
+
+interface HTMLVideoElement : HTMLMediaElement {};
+
+enum RemotePlaybackState {
+ "connecting",
+ "connected",
+ "disconnected"
+};
+
+callback RemotePlaybackAvailabilityCallback = void(boolean available);
+
+interface RemotePlayback : EventTarget {
+ readonly attribute RemotePlaybackState state;
+ attribute EventHandler onconnecting;
+ attribute EventHandler onconnect;
+ attribute EventHandler ondisconnect;
+
+ Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
+ Promise<void> cancelWatchAvailability(optional long id);
+ Promise<void> prompt();
+};
+
+partial interface HTMLMediaElement {
+ readonly attribute RemotePlayback remote;
+ attribute boolean disableRemotePlayback;
+};

Powered by Google App Engine
This is Rietveld 408576698