Source code

Revision control

Copy as Markdown

Other Tools

/* -*- 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
* The origin of this IDL file is
enum AutoKeyword { "auto" };
enum LineAlignSetting {
enum PositionAlignSetting {
enum AlignSetting {
enum DirectionSetting {
interface VTTCue : TextTrackCue {
constructor(double startTime, double endTime, DOMString text);
attribute VTTRegion? region;
attribute DirectionSetting vertical;
attribute boolean snapToLines;
attribute (double or AutoKeyword) line;
attribute LineAlignSetting lineAlign;
attribute (double or AutoKeyword) position;
attribute PositionAlignSetting positionAlign;
attribute double size;
attribute AlignSetting align;
attribute DOMString text;
DocumentFragment getCueAsHTML();
// Mozilla extensions.
partial interface VTTCue {
attribute HTMLDivElement? displayState;
readonly attribute boolean hasBeenReset;
readonly attribute double computedLine;
readonly attribute double computedPosition;
readonly attribute PositionAlignSetting computedPositionAlign;
readonly attribute boolean getActive;