OLD | NEW |
(Empty) | |
| 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 module events { |
| 21 |
| 22 // Introduced in DOM Level 2: |
| 23 interface MouseEvent : UIEvent { |
| 24 readonly attribute long screenX; |
| 25 readonly attribute long screenY; |
| 26 readonly attribute long clientX; |
| 27 readonly attribute long clientY; |
| 28 readonly attribute [Conditional=POINTER_LOCK, V8EnabledAtRuntime] long w
ebkitMovementX; |
| 29 readonly attribute [Conditional=POINTER_LOCK, V8EnabledAtRuntime] long w
ebkitMovementY; |
| 30 readonly attribute boolean ctrlKey; |
| 31 readonly attribute boolean shiftKey; |
| 32 readonly attribute boolean altKey; |
| 33 readonly attribute boolean metaKey; |
| 34 readonly attribute unsigned short button; |
| 35 readonly attribute EventTarget relatedTarget; |
| 36 |
| 37 [ObjCLegacyUnnamedParameters] void initMouseEvent(in [Optional=DefaultIs
Undefined] DOMString type, |
| 38 in [Optional=DefaultIsUndefined] bool
ean canBubble, |
| 39 in [Optional=DefaultIsUndefined] bool
ean cancelable, |
| 40 in [Optional=DefaultIsUndefined] DOMW
indow view, |
| 41 in [Optional=DefaultIsUndefined] long
detail, |
| 42 in [Optional=DefaultIsUndefined] long
screenX, |
| 43 in [Optional=DefaultIsUndefined] long
screenY, |
| 44 in [Optional=DefaultIsUndefined] long
clientX, |
| 45 in [Optional=DefaultIsUndefined] long
clientY, |
| 46 in [Optional=DefaultIsUndefined] bool
ean ctrlKey, |
| 47 in [Optional=DefaultIsUndefined] bool
ean altKey, |
| 48 in [Optional=DefaultIsUndefined] bool
ean shiftKey, |
| 49 in [Optional=DefaultIsUndefined] bool
ean metaKey, |
| 50 in [Optional=DefaultIsUndefined] unsi
gned short button, |
| 51 in [Optional=DefaultIsUndefined] Even
tTarget relatedTarget); |
| 52 |
| 53 // extensions |
| 54 readonly attribute long offsetX; |
| 55 readonly attribute long offsetY; |
| 56 readonly attribute long x; |
| 57 readonly attribute long y; |
| 58 readonly attribute Node fromElement; |
| 59 readonly attribute Node toElement; |
| 60 |
| 61 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 62 readonly attribute Clipboard dataTransfer; |
| 63 #endif |
| 64 }; |
| 65 |
| 66 } |
OLD | NEW |