2013-09-14 03:44:33 +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
|
2017-11-22 11:10:11 +03:00
|
|
|
* https://w3c.github.io/webvtt/#the-vttregion-interface
|
2013-09-14 03:44:33 +04:00
|
|
|
*/
|
|
|
|
|
2017-11-22 11:10:11 +03:00
|
|
|
enum ScrollSetting {
|
|
|
|
"",
|
|
|
|
"up"
|
|
|
|
};
|
|
|
|
|
2016-09-16 00:10:17 +03:00
|
|
|
[Constructor, Pref="media.webvtt.regions.enabled"]
|
2013-09-20 22:42:35 +04:00
|
|
|
interface VTTRegion {
|
2017-11-06 06:18:55 +03:00
|
|
|
attribute DOMString id;
|
2013-09-20 22:42:35 +04:00
|
|
|
[SetterThrows]
|
|
|
|
attribute double width;
|
2017-11-22 10:12:03 +03:00
|
|
|
[SetterThrows]
|
2013-09-20 22:42:35 +04:00
|
|
|
attribute long lines;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute double regionAnchorX;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute double regionAnchorY;
|
|
|
|
[SetterThrows]
|
|
|
|
attribute double viewportAnchorX;
|
|
|
|
[SetterThrows]
|
2013-09-14 03:44:33 +04:00
|
|
|
attribute double viewportAnchorY;
|
2017-11-22 11:10:11 +03:00
|
|
|
|
|
|
|
attribute ScrollSetting scroll;
|
2013-09-14 03:44:33 +04:00
|
|
|
};
|