1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/HTMLTrackElement.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * The origin of this IDL file is 1.10 + * http://www.whatwg.org/specs/web-apps/current-work/#the-track-element 1.11 + */ 1.12 + 1.13 +[Pref="media.webvtt.enabled"] 1.14 +interface HTMLTrackElement : HTMLElement { 1.15 + [SetterThrows, Pure] 1.16 + attribute DOMString kind; 1.17 + [SetterThrows, Pure] 1.18 + attribute DOMString src; 1.19 + [SetterThrows, Pure] 1.20 + attribute DOMString srclang; 1.21 + [SetterThrows, Pure] 1.22 + attribute DOMString label; 1.23 + [SetterThrows, Pure] 1.24 + attribute boolean default; 1.25 + 1.26 + const unsigned short NONE = 0; 1.27 + const unsigned short LOADING = 1; 1.28 + const unsigned short LOADED = 2; 1.29 + const unsigned short ERROR = 3; 1.30 + readonly attribute unsigned short readyState; 1.31 + 1.32 + readonly attribute TextTrack? track; 1.33 +};