| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // https://html.spec.whatwg.org/#videotracklist |
| 6 |
| 5 [ | 7 [ |
| 6 RuntimeEnabled=AudioVideoTracks, | 8 RuntimeEnabled=AudioVideoTracks, |
| 7 SetWrapperReferenceFrom=owner, | 9 SetWrapperReferenceFrom=owner, |
| 8 ] interface VideoTrackList : EventTarget { | 10 ] interface VideoTrackList : EventTarget { |
| 9 readonly attribute unsigned long length; | 11 readonly attribute unsigned long length; |
| 10 getter VideoTrack (unsigned long index); | 12 getter VideoTrack (unsigned long index); |
| 11 VideoTrack? getTrackById(DOMString id); | 13 VideoTrack? getTrackById(DOMString id); |
| 12 readonly attribute long selectedIndex; | 14 readonly attribute long selectedIndex; |
| 13 | 15 |
| 14 attribute EventHandler onchange; | 16 attribute EventHandler onchange; |
| 15 attribute EventHandler onaddtrack; | 17 attribute EventHandler onaddtrack; |
| 16 attribute EventHandler onremovetrack; | 18 attribute EventHandler onremovetrack; |
| 17 }; | 19 }; |
| OLD | NEW |