Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 interface HTMLMediaElement : HTMLElement {}; | |
|
foolip
2017/05/09 15:23:09
These shouldn't be in this file, they should go in
| |
| 2 | |
| 3 interface HTMLVideoElement : HTMLMediaElement {}; | |
| 4 | |
| 5 enum RemotePlaybackState { | |
| 6 "connecting", | |
| 7 "connected", | |
| 8 "disconnected" | |
| 9 }; | |
| 10 | |
| 11 callback RemotePlaybackAvailabilityCallback = void(boolean available); | |
| 12 | |
| 13 interface RemotePlayback : EventTarget { | |
| 14 readonly attribute RemotePlaybackState state; | |
| 15 attribute EventHandler onconnecting; | |
| 16 attribute EventHandler onconnect; | |
| 17 attribute EventHandler ondisconnect; | |
| 18 | |
| 19 Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback) ; | |
| 20 Promise<void> cancelWatchAvailability(optional long id); | |
| 21 Promise<void> prompt(); | |
| 22 }; | |
| 23 | |
| 24 partial interface HTMLMediaElement { | |
| 25 readonly attribute RemotePlayback remote; | |
| 26 attribute boolean disableRemotePlayback; | |
| 27 }; | |
| OLD | NEW |