1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
// File: smil.idl
#ifndef _SMIL_IDL_
#define _SMIL_IDL_
#include "dom.idl"
#include "views.idl"
#include "events.idl"
#pragma prefix "dom.w3c.org"
module smil
{
typedef dom::DOMString DOMString;
typedef dom::Element Element;
typedef dom::NodeList NodeList;
typedef dom::Document Document;
interface SMILRegionElement;
interface ElementLayout {
attribute DOMString title;
// raises(dom::DOMException) on setting
attribute DOMString backgroundColor;
// raises(dom::DOMException) on setting
attribute long height;
// raises(dom::DOMException) on setting
attribute long width;
// raises(dom::DOMException) on setting
};
interface SMILRegionInterface {
attribute SMILRegionElement region;
};
interface Time {
readonly attribute boolean resolved;
readonly attribute double resolvedOffset;
// TimeTypes
const unsigned short SMIL_TIME_INDEFINITE = 0;
const unsigned short SMIL_TIME_OFFSET = 1;
const unsigned short SMIL_TIME_SYNC_BASED = 2;
const unsigned short SMIL_TIME_EVENT_BASED = 3;
const unsigned short SMIL_TIME_WALLCLOCK = 4;
const unsigned short SMIL_TIME_MEDIA_MARKER = 5;
readonly attribute unsigned short timeType;
attribute double offset;
// raises(dom::DOMException) on setting
attribute Element baseElement;
// raises(dom::DOMException) on setting
attribute boolean baseBegin;
// raises(dom::DOMException) on setting
attribute DOMString event;
// raises(dom::DOMException) on setting
attribute DOMString marker;
// raises(dom::DOMException) on setting
};
interface TimeList {
Time item(in unsigned long index);
readonly attribute unsigned long length;
};
interface ElementTime {
attribute TimeList begin;
// raises(dom::DOMException) on setting
attribute TimeList end;
// raises(dom::DOMException) on setting
attribute float dur;
// raises(dom::DOMException) on setting
// restartTypes
const unsigned short RESTART_ALWAYS = 0;
const unsigned short RESTART_NEVER = 1;
const unsigned short RESTART_WHEN_NOT_ACTIVE = 2;
attribute unsigned short restart;
// raises(dom::DOMException) on setting
// fillTypes
const unsigned short FILL_REMOVE = 0;
const unsigned short FILL_FREEZE = 1;
attribute unsigned short fill;
// raises(dom::DOMException) on setting
attribute float repeatCount;
// raises(dom::DOMException) on setting
attribute float repeatDur;
// raises(dom::DOMException) on setting
boolean beginElement();
boolean endElement();
void pauseElement();
void resumeElement();
void seekElement(inout float seekTo);
};
interface ElementTimeManipulation {
attribute float speed;
// raises(dom::DOMException) on setting
attribute float accelerate;
// raises(dom::DOMException) on setting
attribute float decelerate;
// raises(dom::DOMException) on setting
attribute boolean autoReverse;
// raises(dom::DOMException) on setting
};
interface ElementTimeContainer : ElementTime {
readonly attribute NodeList timeChildren;
NodeList getActiveChildrenAt(in float instant);
};
interface ElementSyncBehavior {
readonly attribute DOMString syncBehavior;
readonly attribute float syncTolerance;
readonly attribute DOMString defaultSyncBehavior;
readonly attribute float defaultSyncTolerance;
readonly attribute boolean syncMaster;
};
interface ElementParallelTimeContainer : ElementTimeContainer {
attribute DOMString endSync;
// raises(dom::DOMException) on setting
float getImplicitDuration();
};
interface ElementSequentialTimeContainer : ElementTimeContainer {
};
interface ElementExclusiveTimeContainer : ElementTimeContainer {
attribute DOMString endSync;
// raises(dom::DOMException) on setting
NodeList getPausedElements();
};
interface ElementTimeControl {
boolean beginElement()
raises(dom::DOMException);
boolean beginElementAt(in float offset)
raises(dom::DOMException);
boolean endElement()
raises(dom::DOMException);
boolean endElementAt(in float offset)
raises(dom::DOMException);
};
interface ElementTargetAttributes {
attribute DOMString attributeName;
// attributeTypes
const unsigned short ATTRIBUTE_TYPE_AUTO = 0;
const unsigned short ATTRIBUTE_TYPE_CSS = 1;
const unsigned short ATTRIBUTE_TYPE_XML = 2;
attribute unsigned short attributeType;
};
interface ElementTest {
attribute long systemBitrate;
// raises(dom::DOMException) on setting
attribute boolean systemCaptions;
// raises(dom::DOMException) on setting
attribute DOMString systemLanguage;
// raises(dom::DOMException) on setting
readonly attribute boolean systemRequired;
readonly attribute boolean systemScreenSize;
readonly attribute boolean systemScreenDepth;
attribute DOMString systemOverdubOrSubtitle;
// raises(dom::DOMException) on setting
attribute boolean systemAudioDesc;
// raises(dom::DOMException) on setting
};
interface SMILDocument : Document, ElementSequentialTimeContainer {
};
interface SMILElement : Element {
attribute DOMString id;
// raises(dom::DOMException) on setting
};
interface SMILLayoutElement : SMILElement {
readonly attribute DOMString type;
readonly attribute boolean resolved;
};
interface SMILTopLayoutElement : SMILElement, ElementLayout {
};
interface SMILRootLayoutElement : SMILElement, ElementLayout {
};
interface SMILRegionElement : SMILElement, ElementLayout {
attribute DOMString fit;
// raises(dom::DOMException) on setting
attribute DOMString top;
// raises(dom::DOMException) on setting
attribute long zIndex;
// raises(dom::DOMException) on setting
};
interface TimeEvent : events::Event {
readonly attribute views::AbstractView view;
readonly attribute long detail;
void initTimeEvent(in DOMString typeArg,
in views::AbstractView viewArg,
in long detailArg);
};
interface SMILMediaElement : ElementTime, SMILElement {
attribute DOMString abstractAttr;
// raises(dom::DOMException) on setting
attribute DOMString alt;
// raises(dom::DOMException) on setting
attribute DOMString author;
// raises(dom::DOMException) on setting
attribute DOMString clipBegin;
// raises(dom::DOMException) on setting
attribute DOMString clipEnd;
// raises(dom::DOMException) on setting
attribute DOMString copyright;
// raises(dom::DOMException) on setting
attribute DOMString longdesc;
// raises(dom::DOMException) on setting
attribute DOMString port;
// raises(dom::DOMException) on setting
attribute DOMString readIndex;
// raises(dom::DOMException) on setting
attribute DOMString rtpformat;
// raises(dom::DOMException) on setting
attribute DOMString src;
// raises(dom::DOMException) on setting
attribute DOMString stripRepeat;
// raises(dom::DOMException) on setting
attribute DOMString title;
// raises(dom::DOMException) on setting
attribute DOMString transport;
// raises(dom::DOMException) on setting
attribute DOMString type;
// raises(dom::DOMException) on setting
};
interface SMILRefElement : SMILMediaElement {
};
interface SMILAnimation : SMILElement, ElementTargetAttributes, ElementTime, ElementTimeControl {
// additiveTypes
const unsigned short ADDITIVE_REPLACE = 0;
const unsigned short ADDITIVE_SUM = 1;
attribute unsigned short additive;
// raises(dom::DOMException) on setting
// accumulateTypes
const unsigned short ACCUMULATE_NONE = 0;
const unsigned short ACCUMULATE_SUM = 1;
attribute unsigned short accumulate;
// raises(dom::DOMException) on setting
// calcModeTypes
const unsigned short CALCMODE_DISCRETE = 0;
const unsigned short CALCMODE_LINEAR = 1;
const unsigned short CALCMODE_PACED = 2;
const unsigned short CALCMODE_SPLINE = 3;
attribute unsigned short calcMode;
// raises(dom::DOMException) on setting
attribute DOMString keySplines;
// raises(dom::DOMException) on setting
attribute TimeList keyTimes;
// raises(dom::DOMException) on setting
attribute DOMString values;
// raises(dom::DOMException) on setting
attribute DOMString from;
// raises(dom::DOMException) on setting
attribute DOMString to;
// raises(dom::DOMException) on setting
attribute DOMString by;
// raises(dom::DOMException) on setting
};
interface SMILAnimateElement : SMILAnimation {
};
interface SMILSetElement : ElementTimeControl, ElementTime, ElementTargetAttributes, SMILElement {
attribute DOMString to;
};
interface SMILAnimateMotionElement : SMILAnimateElement {
attribute DOMString path;
// raises(dom::DOMException) on setting
attribute DOMString origin;
// raises(dom::DOMException) on setting
};
interface SMILAnimateColorElement : SMILAnimation {
};
interface SMILSwitchElement : SMILElement {
Element getSelectedElement();
};
};
#endif // _SMIL_IDL_
|