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.

     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/#texttrackcue
     8  */
    10 enum AutoKeyword { "auto" };
    12 enum AlignSetting {
    13   "start",
    14   "middle",
    15   "end",
    16   "left",
    17   "right"
    18 };
    20 enum DirectionSetting {
    21   "",
    22   "rl",
    23   "lr"
    24 };
    26 [Constructor(double startTime, double endTime, DOMString text),
    27  Pref="media.webvtt.enabled"]
    28 interface VTTCue : EventTarget {
    29   readonly attribute TextTrack? track;
    31   attribute DOMString id;
    32   attribute double startTime;
    33   attribute double endTime;
    34   attribute boolean pauseOnExit;
    35   [Pref="media.webvtt.regions.enabled"]
    36   attribute VTTRegion? region;
    37   attribute DirectionSetting vertical;
    38   attribute boolean snapToLines;
    39   attribute (long or AutoKeyword) line;
    40   [SetterThrows]
    41   attribute AlignSetting lineAlign;
    42   [SetterThrows]
    43   attribute long position;
    44   [SetterThrows]
    45   attribute AlignSetting positionAlign;
    46   [SetterThrows]
    47   attribute long size;
    48   attribute AlignSetting align;
    49   attribute DOMString text;
    50   DocumentFragment getCueAsHTML();
    52   attribute EventHandler onenter;
    54   attribute EventHandler onexit;
    55 };
    57 // Mozilla extensions.
    58 partial interface VTTCue {
    59   [ChromeOnly]
    60   attribute HTMLDivElement? displayState;
    61   [ChromeOnly]
    62   readonly attribute boolean hasBeenReset;
    63 };

mercurial