1/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/#texttrack
8 */
9
10enum TextTrackKind {
11  "subtitles",
12  "captions",
13  "descriptions",
14  "chapters",
15  "metadata"
16};
17
18enum TextTrackMode {
19  "disabled",
20  "hidden",
21  "showing"
22};
23
24interface TextTrack : EventTarget {
25  readonly attribute TextTrackKind kind;
26  readonly attribute DOMString label;
27  readonly attribute DOMString language;
28
29  readonly attribute DOMString id;
30  readonly attribute DOMString inBandMetadataTrackDispatchType;
31
32           attribute TextTrackMode mode;
33
34  readonly attribute TextTrackCueList? cues;
35  readonly attribute TextTrackCueList? activeCues;
36
37  void addCue(VTTCue cue);
38  [Throws]
39  void removeCue(VTTCue cue);
40
41           attribute EventHandler oncuechange;
42};
43