1bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)/* 2bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * Copyright (c) 2013, Opera Software ASA. All rights reserved. 3bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * 4bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * Redistribution and use in source and binary forms, with or without 5bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * modification, are permitted provided that the following conditions 6bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * are met: 7bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * 1. Redistributions of source code must retain the above copyright 8bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * notice, this list of conditions and the following disclaimer. 9bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * 2. Redistributions in binary form must reproduce the above copyright 10bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * notice, this list of conditions and the following disclaimer in the 11bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * documentation and/or other materials provided with the distribution. 12bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * 3. Neither the name of Opera Software ASA nor the names of its 13bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * contributors may be used to endorse or promote products derived 14bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * from this software without specific prior written permission. 15bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * 16bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 19bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 20bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 21bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 27bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) * OF THE POSSIBILITY OF SUCH DAMAGE. 28bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) */ 29bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) 30a9984bf9ddc3cf73fdae3f29134a2bab379e7029Ben Murdoch// http://www.whatwg.org/specs/web-apps/current-work/#globaleventhandlers 31a9984bf9ddc3cf73fdae3f29134a2bab379e7029Ben Murdoch 32bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)[ 33a9984bf9ddc3cf73fdae3f29134a2bab379e7029Ben Murdoch LegacyTreatAsPartialInterface, 34a9984bf9ddc3cf73fdae3f29134a2bab379e7029Ben Murdoch NoInterfaceObject, // Always used on target of 'implements' 35bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)] interface GlobalEventHandlers { 36bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onabort; 37a9984bf9ddc3cf73fdae3f29134a2bab379e7029Ben Murdoch [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocomplete; 38a9984bf9ddc3cf73fdae3f29134a2bab379e7029Ben Murdoch [RuntimeEnabled=RequestAutocomplete] attribute EventHandler onautocompleteerror; 39bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onblur; 40bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler oncancel; 41bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler oncanplay; 42bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler oncanplaythrough; 43bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onchange; 44197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onclick; 45bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onclose; 46bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler oncontextmenu; 47bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler oncuechange; 48197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondblclick; 49197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondrag; 50197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondragend; 51197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondragenter; 52197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch //attribute EventHandler ondragexit; 53197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondragleave; 54197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondragover; 55197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondragstart; 56197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler ondrop; 57bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler ondurationchange; 58bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onemptied; 59bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onended; 60bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onerror; 61bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onfocus; 62197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler oninput; 63bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler oninvalid; 64197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onkeydown; 65197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onkeypress; 66197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onkeyup; 67bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onload; 68bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onloadeddata; 69bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onloadedmetadata; 70bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onloadstart; 71197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmousedown; 72197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmouseenter; 73197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmouseleave; 74197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmousemove; 75197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmouseout; 76197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmouseover; 77197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmouseup; 78197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch attribute EventHandler onmousewheel; 79bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onpause; 80bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onplay; 81bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onplaying; 82bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onprogress; 83bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onratechange; 84bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onreset; 8509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) attribute EventHandler onresize; 86bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onscroll; 87bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onseeked; 88bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onseeking; 89bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onselect; 90bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onshow; 91bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) //attribute EventHandler onsort; 92bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onstalled; 93bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onsubmit; 94bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onsuspend; 95bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler ontimeupdate; 96f91f5fa1608c2cdd9af1842fb5dadbe78275be2aBo Liu attribute EventHandler ontoggle; 97bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onvolumechange; 98bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) attribute EventHandler onwaiting; 99bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles)}; 100