OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 attribute EventListener onmessage; | 41 attribute EventListener onmessage; |
42 void postMessage(in DOMString message); | 42 void postMessage(in DOMString message); |
43 | 43 |
44 attribute [Replaceable] WorkerLocation location; | 44 attribute [Replaceable] WorkerLocation location; |
45 attribute [Replaceable] WorkerNavigator navigator; | 45 attribute [Replaceable] WorkerNavigator navigator; |
46 | 46 |
47 attribute MessageEventConstructor MessageEvent; | 47 attribute MessageEventConstructor MessageEvent; |
48 attribute WorkerLocationConstructor WorkerLocation; | 48 attribute WorkerLocationConstructor WorkerLocation; |
49 | 49 |
| 50 // Timers |
| 51 [Custom] long setTimeout(in TimeoutHandler handler, in long timeout); |
| 52 // [Custom] long setTimeout(in DOMString code, in long timeout); |
| 53 [Custom] void clearTimeout(in long handle); |
| 54 |
| 55 [Custom] long setInterval(in TimeoutHandler handler, in long timeout); |
| 56 // [Custom] long setInterval(in DOMString code, in long timeout); |
| 57 [Custom] void clearInterval(in long handle); |
| 58 |
50 // EventTarget interface | 59 // EventTarget interface |
51 [Custom] void addEventListener(in DOMString type, | 60 [Custom] void addEventListener(in DOMString type, |
52 in EventListener listener, | 61 in EventListener listener, |
53 in boolean useCapture); | 62 in boolean useCapture); |
54 [Custom] void removeEventListener(in DOMString type, | 63 [Custom] void removeEventListener(in DOMString type, |
55 in EventListener listener, | 64 in EventListener listener, |
56 in boolean useCapture); | 65 in boolean useCapture); |
57 boolean dispatchEvent(in Event evt) | 66 boolean dispatchEvent(in Event evt) |
58 raises(EventException); | 67 raises(EventException); |
59 }; | 68 }; |
60 | 69 |
61 } | 70 } |
OLD | NEW |