OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. 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 | 33 |
34 attribute DOMString mode; | 34 attribute DOMString mode; |
35 | 35 |
36 readonly attribute TextTrackCueList cues; | 36 readonly attribute TextTrackCueList cues; |
37 readonly attribute TextTrackCueList activeCues; | 37 readonly attribute TextTrackCueList activeCues; |
38 attribute EventListener oncuechange; | 38 attribute EventListener oncuechange; |
39 | 39 |
40 void addCue(TextTrackCue cue); | 40 void addCue(TextTrackCue cue); |
41 [RaisesException] void removeCue(TextTrackCue cue); | 41 [RaisesException] void removeCue(TextTrackCue cue); |
42 | 42 |
43 #if defined(ENABLE_WEBVTT_REGIONS) && ENABLE_WEBVTT_REGIONS | 43 [Conditional=WEBVTT_REGIONS] readonly attribute TextTrackRegionList regions; |
44 readonly attribute TextTrackRegionList regions; | 44 [Conditional=WEBVTT_REGIONS] void addRegion(TextTrackRegion region); |
45 void addRegion(TextTrackRegion region); | 45 [RaisesException, Conditional=WEBVTT_REGIONS] void removeRegion(TextTrackReg
ion region); |
46 [RaisesException] void removeRegion(TextTrackRegion region); | |
47 #endif | |
48 | 46 |
49 // EventTarget interface | 47 // EventTarget interface |
50 void addEventListener(DOMString type, | 48 void addEventListener(DOMString type, |
51 EventListener listener, | 49 EventListener listener, |
52 optional boolean useCapture); | 50 optional boolean useCapture); |
53 void removeEventListener(DOMString type, | 51 void removeEventListener(DOMString type, |
54 EventListener listener, | 52 EventListener listener, |
55 optional boolean useCapture); | 53 optional boolean useCapture); |
56 [RaisesException] boolean dispatchEvent(Event evt); | 54 [RaisesException] boolean dispatchEvent(Event evt); |
57 }; | 55 }; |
OLD | NEW |