OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. 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 * 3. Neither the name of Opera Software ASA nor the names of its | 12 * 3. Neither the name of Opera Software ASA nor the names of its |
13 * contributors may be used to endorse or promote products derived | 13 * contributors may be used to endorse or promote products derived |
14 * from this software without specific prior written permission. | 14 * from this software without specific prior written permission. |
15 * | 15 * |
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
19 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | 19 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
20 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | 20 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
21 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 21 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
23 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 23 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
27 * OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
| 30 // http://www.whatwg.org/specs/web-apps/current-work/#globaleventhandlers |
| 31 |
30 [ | 32 [ |
31 NoInterfaceObject | 33 LegacyTreatAsPartialInterface, |
| 34 NoInterfaceObject, // Always used on target of 'implements' |
32 ] interface GlobalEventHandlers { | 35 ] interface GlobalEventHandlers { |
33 attribute EventHandler onabort; | 36 attribute EventHandler onabort; |
| 37 [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocomplete; |
| 38 [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocompleteer
ror; |
34 attribute EventHandler onblur; | 39 attribute EventHandler onblur; |
35 attribute EventHandler oncancel; | 40 attribute EventHandler oncancel; |
36 attribute EventHandler oncanplay; | 41 attribute EventHandler oncanplay; |
37 attribute EventHandler oncanplaythrough; | 42 attribute EventHandler oncanplaythrough; |
38 attribute EventHandler onchange; | 43 attribute EventHandler onchange; |
39 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onclick; | 44 [LogActivity=SetterOnly] attribute EventHandler onclick; |
40 attribute EventHandler onclose; | 45 attribute EventHandler onclose; |
41 attribute EventHandler oncontextmenu; | 46 attribute EventHandler oncontextmenu; |
42 attribute EventHandler oncuechange; | 47 attribute EventHandler oncuechange; |
43 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondblclick; | 48 [LogActivity=SetterOnly] attribute EventHandler ondblclick; |
44 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondrag; | 49 [LogActivity=SetterOnly] attribute EventHandler ondrag; |
45 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondragend; | 50 [LogActivity=SetterOnly] attribute EventHandler ondragend; |
46 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondragenter; | 51 [LogActivity=SetterOnly] attribute EventHandler ondragenter; |
47 //[PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute Even
tHandler ondragexit; | 52 //[LogActivity=SetterOnly] attribute EventHandler ondragexit; |
48 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondragleave; | 53 [LogActivity=SetterOnly] attribute EventHandler ondragleave; |
49 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondragover; | 54 [LogActivity=SetterOnly] attribute EventHandler ondragover; |
50 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondragstart; | 55 [LogActivity=SetterOnly] attribute EventHandler ondragstart; |
51 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler ondrop; | 56 [LogActivity=SetterOnly] attribute EventHandler ondrop; |
52 attribute EventHandler ondurationchange; | 57 attribute EventHandler ondurationchange; |
53 attribute EventHandler onemptied; | 58 attribute EventHandler onemptied; |
54 attribute EventHandler onended; | 59 attribute EventHandler onended; |
55 attribute EventHandler onerror; | 60 attribute EventHandler onerror; |
56 attribute EventHandler onfocus; | 61 attribute EventHandler onfocus; |
57 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler oninput; | 62 [LogActivity=SetterOnly] attribute EventHandler oninput; |
58 attribute EventHandler oninvalid; | 63 attribute EventHandler oninvalid; |
59 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onkeydown; | 64 [LogActivity=SetterOnly] attribute EventHandler onkeydown; |
60 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onkeypress; | 65 [LogActivity=SetterOnly] attribute EventHandler onkeypress; |
61 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onkeyup; | 66 [LogActivity=SetterOnly] attribute EventHandler onkeyup; |
62 attribute EventHandler onload; | 67 attribute EventHandler onload; |
63 attribute EventHandler onloadeddata; | 68 attribute EventHandler onloadeddata; |
64 attribute EventHandler onloadedmetadata; | 69 attribute EventHandler onloadedmetadata; |
65 attribute EventHandler onloadstart; | 70 attribute EventHandler onloadstart; |
66 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmousedown; | 71 [LogActivity=SetterOnly] attribute EventHandler onmousedown; |
67 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmouseenter; | 72 [LogActivity=SetterOnly] attribute EventHandler onmouseenter; |
68 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmouseleave; | 73 [LogActivity=SetterOnly] attribute EventHandler onmouseleave; |
69 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmousemove; | 74 [LogActivity=SetterOnly] attribute EventHandler onmousemove; |
70 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmouseout; | 75 [LogActivity=SetterOnly] attribute EventHandler onmouseout; |
71 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmouseover; | 76 [LogActivity=SetterOnly] attribute EventHandler onmouseover; |
72 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmouseup; | 77 [LogActivity=SetterOnly] attribute EventHandler onmouseup; |
73 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onmousewheel; | 78 [LogActivity=SetterOnly] attribute EventHandler onmousewheel; |
74 attribute EventHandler onpause; | 79 attribute EventHandler onpause; |
75 attribute EventHandler onplay; | 80 attribute EventHandler onplay; |
76 attribute EventHandler onplaying; | 81 attribute EventHandler onplaying; |
77 attribute EventHandler onprogress; | 82 attribute EventHandler onprogress; |
78 attribute EventHandler onratechange; | 83 attribute EventHandler onratechange; |
79 attribute EventHandler onreset; | 84 attribute EventHandler onreset; |
80 attribute EventHandler onresize; | 85 attribute EventHandler onresize; |
81 attribute EventHandler onscroll; | 86 attribute EventHandler onscroll; |
82 attribute EventHandler onseeked; | 87 attribute EventHandler onseeked; |
83 attribute EventHandler onseeking; | 88 attribute EventHandler onseeking; |
84 attribute EventHandler onselect; | 89 attribute EventHandler onselect; |
85 attribute EventHandler onshow; | 90 attribute EventHandler onshow; |
86 //attribute EventHandler onsort; | 91 //attribute EventHandler onsort; |
87 attribute EventHandler onstalled; | 92 attribute EventHandler onstalled; |
88 attribute EventHandler onsubmit; | 93 attribute EventHandler onsubmit; |
89 attribute EventHandler onsuspend; | 94 attribute EventHandler onsuspend; |
90 attribute EventHandler ontimeupdate; | 95 attribute EventHandler ontimeupdate; |
91 //attribute EventHandler ontoggle; | 96 attribute EventHandler ontoggle; |
92 attribute EventHandler onvolumechange; | 97 attribute EventHandler onvolumechange; |
93 attribute EventHandler onwaiting; | 98 attribute EventHandler onwaiting; |
94 }; | 99 }; |
OLD | NEW |