OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 22 matching lines...) Expand all Loading... |
33 enum DirectionSetting { "" /* horizontal */, "rl", "lr" }; | 33 enum DirectionSetting { "" /* horizontal */, "rl", "lr" }; |
34 // enum LineAlignSetting { "start", "middle", "end" }; | 34 // enum LineAlignSetting { "start", "middle", "end" }; |
35 // enum PositionAlignSetting { "start", "middle", "end", "auto" }; | 35 // enum PositionAlignSetting { "start", "middle", "end", "auto" }; |
36 enum AlignSetting { "start", "middle", "end", "left", "right" }; | 36 enum AlignSetting { "start", "middle", "end", "left", "right" }; |
37 | 37 |
38 [ | 38 [ |
39 Constructor(double startTime, double endTime, DOMString text), | 39 Constructor(double startTime, double endTime, DOMString text), |
40 ConstructorCallWith=Document, | 40 ConstructorCallWith=Document, |
41 SetWrapperReferenceFrom=owner, | 41 SetWrapperReferenceFrom=owner, |
42 ] interface VTTCue : TextTrackCue { | 42 ] interface VTTCue : TextTrackCue { |
43 // TODO(philipj): regionId has been replaced by a region attribute. | 43 // TODO(foolip): regionId has been replaced by a region attribute. |
44 [RuntimeEnabled=WebVTTRegions] attribute DOMString regionId; | 44 [RuntimeEnabled=WebVTTRegions] attribute DOMString regionId; |
45 attribute DirectionSetting vertical; | 45 attribute DirectionSetting vertical; |
46 attribute boolean snapToLines; | 46 attribute boolean snapToLines; |
47 attribute (double or AutoKeyword) line; | 47 attribute (double or AutoKeyword) line; |
48 // attribute LineAlignSetting lineAlign; | 48 // attribute LineAlignSetting lineAlign; |
49 [RaisesException=Setter] attribute (double or AutoKeyword) position; | 49 [RaisesException=Setter] attribute (double or AutoKeyword) position; |
50 // attribute PositionAlignSetting positionAlign; | 50 // attribute PositionAlignSetting positionAlign; |
51 [RaisesException=Setter] attribute double size; | 51 [RaisesException=Setter] attribute double size; |
52 attribute AlignSetting align; | 52 attribute AlignSetting align; |
53 attribute DOMString text; | 53 attribute DOMString text; |
54 DocumentFragment getCueAsHTML(); | 54 DocumentFragment getCueAsHTML(); |
55 }; | 55 }; |
OLD | NEW |