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 | 30 // https://html.spec.whatwg.org/#globaleventhandlers |
31 | 31 |
32 [ | 32 [ |
33 LegacyTreatAsPartialInterface, | 33 LegacyTreatAsPartialInterface, |
34 NoInterfaceObject, // Always used on target of 'implements' | 34 NoInterfaceObject, // Always used on target of 'implements' |
35 ] interface GlobalEventHandlers { | 35 ] interface GlobalEventHandlers { |
36 attribute EventHandler onabort; | 36 attribute EventHandler onabort; |
37 [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocomplete; | 37 [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocomplete; |
38 [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocompleteer
ror; | 38 [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocompleteer
ror; |
39 attribute EventHandler onblur; | 39 attribute EventHandler onblur; |
40 attribute EventHandler oncancel; | 40 attribute EventHandler oncancel; |
41 attribute EventHandler oncanplay; | 41 attribute EventHandler oncanplay; |
42 attribute EventHandler oncanplaythrough; | 42 attribute EventHandler oncanplaythrough; |
43 attribute EventHandler onchange; | 43 attribute EventHandler onchange; |
44 attribute EventHandler onclick; | 44 attribute EventHandler onclick; |
45 attribute EventHandler onclose; | 45 attribute EventHandler onclose; |
46 attribute EventHandler oncontextmenu; | 46 attribute EventHandler oncontextmenu; |
47 attribute EventHandler oncuechange; | 47 attribute EventHandler oncuechange; |
48 attribute EventHandler ondblclick; | 48 attribute EventHandler ondblclick; |
49 attribute EventHandler ondrag; | 49 attribute EventHandler ondrag; |
50 attribute EventHandler ondragend; | 50 attribute EventHandler ondragend; |
51 attribute EventHandler ondragenter; | 51 attribute EventHandler ondragenter; |
52 //attribute EventHandler ondragexit; | 52 //attribute EventHandler ondragexit; |
53 attribute EventHandler ondragleave; | 53 attribute EventHandler ondragleave; |
54 attribute EventHandler ondragover; | 54 attribute EventHandler ondragover; |
55 attribute EventHandler ondragstart; | 55 attribute EventHandler ondragstart; |
56 attribute EventHandler ondrop; | 56 attribute EventHandler ondrop; |
57 attribute EventHandler ondurationchange; | 57 attribute EventHandler ondurationchange; |
58 attribute EventHandler onemptied; | 58 attribute EventHandler onemptied; |
59 attribute EventHandler onended; | 59 attribute EventHandler onended; |
| 60 // FIXME: onerror should be an OnErrorEventHandler. |
60 attribute EventHandler onerror; | 61 attribute EventHandler onerror; |
61 attribute EventHandler onfocus; | 62 attribute EventHandler onfocus; |
62 attribute EventHandler oninput; | 63 attribute EventHandler oninput; |
63 attribute EventHandler oninvalid; | 64 attribute EventHandler oninvalid; |
64 attribute EventHandler onkeydown; | 65 attribute EventHandler onkeydown; |
65 attribute EventHandler onkeypress; | 66 attribute EventHandler onkeypress; |
66 attribute EventHandler onkeyup; | 67 attribute EventHandler onkeyup; |
67 attribute EventHandler onload; | 68 attribute EventHandler onload; |
68 attribute EventHandler onloadeddata; | 69 attribute EventHandler onloadeddata; |
69 attribute EventHandler onloadedmetadata; | 70 attribute EventHandler onloadedmetadata; |
70 attribute EventHandler onloadstart; | 71 attribute EventHandler onloadstart; |
71 attribute EventHandler onmousedown; | 72 attribute EventHandler onmousedown; |
72 attribute EventHandler onmouseenter; | 73 [LenientThis] attribute EventHandler onmouseenter; |
73 attribute EventHandler onmouseleave; | 74 [LenientThis] attribute EventHandler onmouseleave; |
74 attribute EventHandler onmousemove; | 75 attribute EventHandler onmousemove; |
75 attribute EventHandler onmouseout; | 76 attribute EventHandler onmouseout; |
76 attribute EventHandler onmouseover; | 77 attribute EventHandler onmouseover; |
77 attribute EventHandler onmouseup; | 78 attribute EventHandler onmouseup; |
78 attribute EventHandler onmousewheel; | 79 attribute EventHandler onmousewheel; |
79 attribute EventHandler onpause; | 80 attribute EventHandler onpause; |
80 attribute EventHandler onplay; | 81 attribute EventHandler onplay; |
81 attribute EventHandler onplaying; | 82 attribute EventHandler onplaying; |
| 83 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointercancel; |
| 84 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointerdown; |
| 85 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointerenter; |
| 86 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointerleave; |
| 87 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointermove; |
| 88 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointerout; |
| 89 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointerover; |
| 90 [RuntimeEnabled=PointerEvent] attribute EventHandler onpointerup; |
82 attribute EventHandler onprogress; | 91 attribute EventHandler onprogress; |
83 attribute EventHandler onratechange; | 92 attribute EventHandler onratechange; |
84 attribute EventHandler onreset; | 93 attribute EventHandler onreset; |
85 attribute EventHandler onresize; | 94 attribute EventHandler onresize; |
86 attribute EventHandler onscroll; | 95 attribute EventHandler onscroll; |
87 attribute EventHandler onseeked; | 96 attribute EventHandler onseeked; |
88 attribute EventHandler onseeking; | 97 attribute EventHandler onseeking; |
89 attribute EventHandler onselect; | 98 attribute EventHandler onselect; |
90 attribute EventHandler onshow; | 99 attribute EventHandler onshow; |
91 //attribute EventHandler onsort; | 100 //attribute EventHandler onsort; |
92 attribute EventHandler onstalled; | 101 attribute EventHandler onstalled; |
93 attribute EventHandler onsubmit; | 102 attribute EventHandler onsubmit; |
94 attribute EventHandler onsuspend; | 103 attribute EventHandler onsuspend; |
95 attribute EventHandler ontimeupdate; | 104 attribute EventHandler ontimeupdate; |
96 attribute EventHandler ontoggle; | 105 attribute EventHandler ontoggle; |
97 attribute EventHandler onvolumechange; | 106 attribute EventHandler onvolumechange; |
98 attribute EventHandler onwaiting; | 107 attribute EventHandler onwaiting; |
99 }; | 108 }; |
OLD | NEW |