2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / WebCore / dom / MouseEvent.idl
blob3195a7af986819a895798f6d659822af96d58202
1 /*
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 module events {
22 // Introduced in DOM Level 2:
23 interface [
24 GenerateConstructor
25 ] MouseEvent : UIEvent {
26 readonly attribute long screenX;
27 readonly attribute long screenY;
28 readonly attribute long clientX;
29 readonly attribute long clientY;
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;
37 [OldStyleObjC] void initMouseEvent(in DOMString type,
38 in boolean canBubble,
39 in boolean cancelable,
40 in DOMWindow view,
41 in long detail,
42 in long screenX,
43 in long screenY,
44 in long clientX,
45 in long clientY,
46 in boolean ctrlKey,
47 in boolean altKey,
48 in boolean shiftKey,
49 in boolean metaKey,
50 in unsigned short button,
51 in EventTarget relatedTarget);
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;
61 #if defined(LANGUAGE_JAVASCRIPT)
62 readonly attribute Clipboard dataTransfer;
63 #endif