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