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 27 matching lines...) Expand all Loading... |
38 attribute DOMString mode; | 38 attribute DOMString mode; |
39 | 39 |
40 readonly attribute TextTrackCueList cues; | 40 readonly attribute TextTrackCueList cues; |
41 readonly attribute TextTrackCueList activeCues; | 41 readonly attribute TextTrackCueList activeCues; |
42 attribute EventListener oncuechange; | 42 attribute EventListener oncuechange; |
43 | 43 |
44 void addCue(in TextTrackCue cue); | 44 void addCue(in TextTrackCue cue); |
45 void removeCue(in TextTrackCue cue) | 45 void removeCue(in TextTrackCue cue) |
46 raises (DOMException); | 46 raises (DOMException); |
47 | 47 |
| 48 #if defined(ENABLE_WEBVTT_REGIONS) && ENABLE_WEBVTT_REGIONS |
| 49 readonly attribute TextTrackRegionList regions; |
| 50 void addRegion(in TextTrackRegion region); |
| 51 void removeRegion(in TextTrackRegion region) |
| 52 raises (DOMException); |
| 53 #endif |
| 54 |
48 // EventTarget interface | 55 // EventTarget interface |
49 void addEventListener(in DOMString type, | 56 void addEventListener(in DOMString type, |
50 in EventListener listener, | 57 in EventListener listener, |
51 in [Optional] boolean useCapture); | 58 in [Optional] boolean useCapture); |
52 void removeEventListener(in DOMString type, | 59 void removeEventListener(in DOMString type, |
53 in EventListener listener, | 60 in EventListener listener, |
54 in [Optional] boolean useCapture); | 61 in [Optional] boolean useCapture); |
55 boolean dispatchEvent(in Event evt) | 62 boolean dispatchEvent(in Event evt) |
56 raises(EventException); | 63 raises(EventException); |
57 }; | 64 }; |
OLD | NEW |