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 |
11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
12 * | 12 * |
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 * | 24 * |
25 */ | 25 */ |
26 | 26 |
27 [ | 27 [ |
28 Conditional=WORKERS, | 28 Conditional=WORKERS, |
29 JSCustomMarkFunction, | |
30 JSCustomGetOwnPropertySlotAndDescriptor, | |
31 EventTarget, | 29 EventTarget, |
32 ExtendsDOMGlobalObject, | 30 ExtendsDOMGlobalObject, |
33 IsWorkerContext, | 31 IsWorkerContext, |
34 JSLegacyParent=JSWorkerContextBase, | |
35 JSNoStaticTables, | |
36 OmitConstructor, | 32 OmitConstructor, |
37 V8CustomToJSObject, | 33 V8CustomToJSObject, |
38 V8NoWrapperCache | 34 V8NoWrapperCache |
39 ] interface WorkerContext { | 35 ] interface WorkerContext { |
40 | 36 |
41 // WorkerGlobalScope | 37 // WorkerGlobalScope |
42 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 38 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
43 [Replaceable] readonly attribute WorkerContext self; | 39 [Replaceable] readonly attribute WorkerContext self; |
44 #endif | 40 #endif |
45 [Replaceable] readonly attribute WorkerLocation location; | 41 [Replaceable] readonly attribute WorkerLocation location; |
(...skipping 20 matching lines...) Expand all Loading... |
66 in [Optional] boolean useCapture); | 62 in [Optional] boolean useCapture); |
67 boolean dispatchEvent(in Event evt) | 63 boolean dispatchEvent(in Event evt) |
68 raises(EventException); | 64 raises(EventException); |
69 | 65 |
70 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP | 66 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP |
71 // Constructors | 67 // Constructors |
72 attribute MessageEventConstructor MessageEvent; | 68 attribute MessageEventConstructor MessageEvent; |
73 attribute WorkerLocationConstructor WorkerLocation; | 69 attribute WorkerLocationConstructor WorkerLocation; |
74 | 70 |
75 #if defined(ENABLE_CHANNEL_MESSAGING) && ENABLE_CHANNEL_MESSAGING | 71 #if defined(ENABLE_CHANNEL_MESSAGING) && ENABLE_CHANNEL_MESSAGING |
76 [JSCustomGetter] attribute MessageChannelConstructor MessageChannel; | 72 attribute MessageChannelConstructor MessageChannel; |
77 #endif | 73 #endif |
78 [JSCustomGetter] attribute EventSourceConstructor EventSource; | 74 attribute EventSourceConstructor EventSource; |
79 [JSCustomGetter] attribute XMLHttpRequestConstructor XMLHttpRequest; | 75 attribute XMLHttpRequestConstructor XMLHttpRequest; |
80 #endif | 76 #endif |
81 | 77 |
82 #if defined(ENABLE_BLOB) && ENABLE_BLOB | 78 #if defined(ENABLE_BLOB) && ENABLE_BLOB |
83 attribute BlobConstructor Blob; | 79 attribute BlobConstructor Blob; |
84 attribute FileReaderConstructor FileReader; | 80 attribute FileReaderConstructor FileReader; |
85 attribute FileReaderSyncConstructor FileReaderSync; | 81 attribute FileReaderSyncConstructor FileReaderSync; |
86 #endif | 82 #endif |
87 | 83 |
88 [Conditional=BLOB] attribute DOMURLConstructor URL; | 84 [Conditional=BLOB] attribute DOMURLConstructor URL; |
89 [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecat
e this. | 85 [Conditional=BLOB] attribute DOMURLConstructor webkitURL; // FIXME: deprecat
e this. |
90 | 86 |
91 attribute ArrayBufferConstructor ArrayBuffer; // Usable with new operator | 87 attribute ArrayBufferConstructor ArrayBuffer; // Usable with new operator |
92 attribute Int8ArrayConstructor Int8Array; // Usable with new operator | 88 attribute Int8ArrayConstructor Int8Array; // Usable with new operator |
93 attribute Uint8ArrayConstructor Uint8Array; // Usable with new operator | 89 attribute Uint8ArrayConstructor Uint8Array; // Usable with new operator |
94 attribute Uint8ClampedArrayConstructor Uint8ClampedArray; // Usable with new
operator | 90 attribute Uint8ClampedArrayConstructor Uint8ClampedArray; // Usable with new
operator |
95 attribute Int16ArrayConstructor Int16Array; // Usable with new operator | 91 attribute Int16ArrayConstructor Int16Array; // Usable with new operator |
96 attribute Uint16ArrayConstructor Uint16Array; // Usable with new operator | 92 attribute Uint16ArrayConstructor Uint16Array; // Usable with new operator |
97 attribute Int32ArrayConstructor Int32Array; // Usable with new operator | 93 attribute Int32ArrayConstructor Int32Array; // Usable with new operator |
98 attribute Uint32ArrayConstructor Uint32Array; // Usable with new operator | 94 attribute Uint32ArrayConstructor Uint32Array; // Usable with new operator |
99 attribute Float32ArrayConstructor Float32Array; // Usable with new operator | 95 attribute Float32ArrayConstructor Float32Array; // Usable with new operator |
100 attribute Float64ArrayConstructor Float64Array; // Usable with new operator | 96 attribute Float64ArrayConstructor Float64Array; // Usable with new operator |
101 attribute DataViewConstructor DataView; // Usable with new operator | 97 attribute DataViewConstructor DataView; // Usable with new operator |
102 }; | 98 }; |
103 | 99 |
OLD | NEW |