2013-05-21 20:14:00 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#texttrackcue
|
|
|
|
*/
|
|
|
|
|
|
|
|
enum AutoKeyword { "auto" };
|
|
|
|
|
2013-12-13 18:44:50 +04:00
|
|
|
enum AlignSetting {
|
2013-05-21 20:14:00 +04:00
|
|
|
"start",
|
|
|
|
"middle",
|
|
|
|
"end",
|
|
|
|
"left",
|
|
|
|
"right"
|
|
|
|
};
|
|
|
|
|
2013-09-12 18:07:14 +04:00
|
|
|
enum DirectionSetting {
|
|
|
|
"",
|
|
|
|
"rl",
|
|
|
|
"lr"
|
|
|
|
};
|
|
|
|
|
2013-05-21 20:14:00 +04:00
|
|
|
[Constructor(double startTime, double endTime, DOMString text),
|
|
|
|
Pref="media.webvtt.enabled"]
|
2013-08-28 00:07:00 +04:00
|
|
|
interface VTTCue : EventTarget {
|
2013-05-21 20:14:00 +04:00
|
|
|
readonly attribute TextTrack? track;
|
|
|
|
|
|
|
|
attribute DOMString id;
|
|
|
|
attribute double startTime;
|
|
|
|
attribute double endTime;
|
|
|
|
attribute boolean pauseOnExit;
|
2013-09-18 21:29:20 +04:00
|
|
|
attribute DOMString regionId;
|
2013-09-12 18:07:14 +04:00
|
|
|
attribute DirectionSetting vertical;
|
2013-05-21 20:14:00 +04:00
|
|
|
attribute boolean snapToLines;
|
2013-12-16 23:35:01 +04:00
|
|
|
attribute (long or AutoKeyword) line;
|
2013-07-24 22:18:54 +04:00
|
|
|
[SetterThrows]
|
2013-12-13 18:29:15 +04:00
|
|
|
attribute AlignSetting lineAlign;
|
|
|
|
[SetterThrows]
|
2013-05-21 20:14:00 +04:00
|
|
|
attribute long position;
|
2013-07-24 22:18:54 +04:00
|
|
|
[SetterThrows]
|
2013-05-21 20:14:00 +04:00
|
|
|
attribute long size;
|
2013-12-13 18:44:50 +04:00
|
|
|
attribute AlignSetting align;
|
2013-05-21 20:14:00 +04:00
|
|
|
attribute DOMString text;
|
|
|
|
DocumentFragment getCueAsHTML();
|
|
|
|
|
2013-09-17 15:01:28 +04:00
|
|
|
attribute EventHandler onenter;
|
2013-05-21 20:14:00 +04:00
|
|
|
|
2013-09-17 15:01:28 +04:00
|
|
|
attribute EventHandler onexit;
|
2013-05-21 20:14:00 +04:00
|
|
|
};
|