Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public License |
| 15 | * along with this library; see the file COPYING.LIB. If not, write to |
| 16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | |
| 20 | [ |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 21 | ConstructorTemplate=Event |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 22 | ] interface MouseEvent : UIEvent { |
| 23 | [InitializedByEventConstructor] readonly attribute long screenX; |
| 24 | [InitializedByEventConstructor] readonly attribute long screenY; |
| 25 | [InitializedByEventConstructor] readonly attribute long clientX; |
| 26 | [InitializedByEventConstructor] readonly attribute long clientY; |
| 27 | [InitializedByEventConstructor] readonly attribute boolean ctrlKey; |
| 28 | [InitializedByEventConstructor] readonly attribute boolean shiftKey; |
| 29 | [InitializedByEventConstructor] readonly attribute boolean altKey; |
| 30 | [InitializedByEventConstructor] readonly attribute boolean metaKey; |
| 31 | [InitializedByEventConstructor] readonly attribute unsigned short button; |
| 32 | [InitializedByEventConstructor] readonly attribute EventTarget relatedTarget; |
| 33 | readonly attribute long webkitMovementX; |
| 34 | readonly attribute long webkitMovementY; |
Ben Murdoch | 02772c6 | 2013-07-26 10:21:05 +0100 | [diff] [blame] | 35 | |
| 36 | void initMouseEvent([Default=Undefined] optional DOMString type, |
| 37 | [Default=Undefined] optional boolean canBubble, |
| 38 | [Default=Undefined] optional boolean cancelable, |
| 39 | [Default=Undefined] optional Window view, |
| 40 | [Default=Undefined] optional long detail, |
| 41 | [Default=Undefined] optional long screenX, |
| 42 | [Default=Undefined] optional long screenY, |
| 43 | [Default=Undefined] optional long clientX, |
| 44 | [Default=Undefined] optional long clientY, |
| 45 | [Default=Undefined] optional boolean ctrlKey, |
| 46 | [Default=Undefined] optional boolean altKey, |
| 47 | [Default=Undefined] optional boolean shiftKey, |
| 48 | [Default=Undefined] optional boolean metaKey, |
| 49 | [Default=Undefined] optional unsigned short button, |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 50 | [Default=Undefined] optional EventTarget relatedTarget); |
| 51 | |
| 52 | // extensions |
| 53 | readonly attribute long offsetX; |
| 54 | readonly attribute long offsetY; |
| 55 | readonly attribute long x; |
| 56 | readonly attribute long y; |
| 57 | readonly attribute Node fromElement; |
| 58 | readonly attribute Node toElement; |
| 59 | |
| 60 | readonly attribute Clipboard dataTransfer; |
| 61 | }; |
| 62 | |