1/* 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 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. 15 * 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. 28 */ 29 30// http://www.whatwg.org/specs/web-apps/current-work/#globaleventhandlers 31 32[ 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 attribute EventHandler onclick; 45 attribute EventHandler onclose; 46 attribute EventHandler oncontextmenu; 47 attribute EventHandler oncuechange; 48 attribute EventHandler ondblclick; 49 attribute EventHandler ondrag; 50 attribute EventHandler ondragend; 51 attribute EventHandler ondragenter; 52 //attribute EventHandler ondragexit; 53 attribute EventHandler ondragleave; 54 attribute EventHandler ondragover; 55 attribute EventHandler ondragstart; 56 attribute EventHandler ondrop; 57 attribute EventHandler ondurationchange; 58 attribute EventHandler onemptied; 59 attribute EventHandler onended; 60 attribute EventHandler onerror; 61 attribute EventHandler onfocus; 62 attribute EventHandler oninput; 63 attribute EventHandler oninvalid; 64 attribute EventHandler onkeydown; 65 attribute EventHandler onkeypress; 66 attribute EventHandler onkeyup; 67 attribute EventHandler onload; 68 attribute EventHandler onloadeddata; 69 attribute EventHandler onloadedmetadata; 70 attribute EventHandler onloadstart; 71 attribute EventHandler onmousedown; 72 attribute EventHandler onmouseenter; 73 attribute EventHandler onmouseleave; 74 attribute EventHandler onmousemove; 75 attribute EventHandler onmouseout; 76 attribute EventHandler onmouseover; 77 attribute EventHandler onmouseup; 78 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; 99}; 100