2
* Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
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.
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.
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.
20
// Introduced in DOM Level 2:
21
interface MouseEvent : UIEvent {
22
readonly attribute long screenX;
23
readonly attribute long screenY;
24
readonly attribute long clientX;
25
readonly attribute long clientY;
26
[Conditional=POINTER_LOCK] readonly attribute long webkitMovementX;
27
[Conditional=POINTER_LOCK] readonly attribute long webkitMovementY;
28
readonly attribute boolean ctrlKey;
29
readonly attribute boolean shiftKey;
30
readonly attribute boolean altKey;
31
readonly attribute boolean metaKey;
32
readonly attribute unsigned short button;
33
readonly attribute EventTarget relatedTarget;
35
[ObjCLegacyUnnamedParameters] void initMouseEvent(in [Optional=DefaultIsUndefined] DOMString type,
36
in [Optional=DefaultIsUndefined] boolean canBubble,
37
in [Optional=DefaultIsUndefined] boolean cancelable,
38
in [Optional=DefaultIsUndefined] DOMWindow view,
39
in [Optional=DefaultIsUndefined] long detail,
40
in [Optional=DefaultIsUndefined] long screenX,
41
in [Optional=DefaultIsUndefined] long screenY,
42
in [Optional=DefaultIsUndefined] long clientX,
43
in [Optional=DefaultIsUndefined] long clientY,
44
in [Optional=DefaultIsUndefined] boolean ctrlKey,
45
in [Optional=DefaultIsUndefined] boolean altKey,
46
in [Optional=DefaultIsUndefined] boolean shiftKey,
47
in [Optional=DefaultIsUndefined] boolean metaKey,
48
in [Optional=DefaultIsUndefined] unsigned short button,
49
in [Optional=DefaultIsUndefined] EventTarget relatedTarget);
52
readonly attribute long offsetX;
53
readonly attribute long offsetY;
54
readonly attribute long x;
55
readonly attribute long y;
56
readonly attribute Node fromElement;
57
readonly attribute Node toElement;
59
#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
60
readonly attribute Clipboard dataTransfer;