dom/webidl/VTTCue.webidl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 4 * You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5 *
michael@0 6 * The origin of this IDL file is
michael@0 7 * http://www.whatwg.org/specs/web-apps/current-work/#texttrackcue
michael@0 8 */
michael@0 9
michael@0 10 enum AutoKeyword { "auto" };
michael@0 11
michael@0 12 enum AlignSetting {
michael@0 13 "start",
michael@0 14 "middle",
michael@0 15 "end",
michael@0 16 "left",
michael@0 17 "right"
michael@0 18 };
michael@0 19
michael@0 20 enum DirectionSetting {
michael@0 21 "",
michael@0 22 "rl",
michael@0 23 "lr"
michael@0 24 };
michael@0 25
michael@0 26 [Constructor(double startTime, double endTime, DOMString text),
michael@0 27 Pref="media.webvtt.enabled"]
michael@0 28 interface VTTCue : EventTarget {
michael@0 29 readonly attribute TextTrack? track;
michael@0 30
michael@0 31 attribute DOMString id;
michael@0 32 attribute double startTime;
michael@0 33 attribute double endTime;
michael@0 34 attribute boolean pauseOnExit;
michael@0 35 [Pref="media.webvtt.regions.enabled"]
michael@0 36 attribute VTTRegion? region;
michael@0 37 attribute DirectionSetting vertical;
michael@0 38 attribute boolean snapToLines;
michael@0 39 attribute (long or AutoKeyword) line;
michael@0 40 [SetterThrows]
michael@0 41 attribute AlignSetting lineAlign;
michael@0 42 [SetterThrows]
michael@0 43 attribute long position;
michael@0 44 [SetterThrows]
michael@0 45 attribute AlignSetting positionAlign;
michael@0 46 [SetterThrows]
michael@0 47 attribute long size;
michael@0 48 attribute AlignSetting align;
michael@0 49 attribute DOMString text;
michael@0 50 DocumentFragment getCueAsHTML();
michael@0 51
michael@0 52 attribute EventHandler onenter;
michael@0 53
michael@0 54 attribute EventHandler onexit;
michael@0 55 };
michael@0 56
michael@0 57 // Mozilla extensions.
michael@0 58 partial interface VTTCue {
michael@0 59 [ChromeOnly]
michael@0 60 attribute HTMLDivElement? displayState;
michael@0 61 [ChromeOnly]
michael@0 62 readonly attribute boolean hasBeenReset;
michael@0 63 };

mercurial