2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
23 // Based off of proposed IDL interface for WheelEvent:
24 interface WheelEvent : UIEvent {
25 readonly attribute long screenX;
26 readonly attribute long screenY;
27 readonly attribute long clientX;
28 readonly attribute long clientY;
29 readonly attribute boolean ctrlKey;
30 readonly attribute boolean shiftKey;
31 readonly attribute boolean altKey;
32 readonly attribute boolean metaKey;
33 readonly attribute long wheelDelta;
34 readonly attribute long wheelDeltaX;
35 readonly attribute long wheelDeltaY;
38 readonly attribute long offsetX;
39 readonly attribute long offsetY;
40 readonly attribute long x;
41 readonly attribute long y;
43 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
44 readonly attribute boolean isHorizontal;
45 #endif /* defined(LANGUAGE_OBJECTIVE_C) */
47 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
48 void initWheelEvent(in [Optional=CallWithDefaultValue] long wheelDeltaX,
49 in [Optional=CallWithDefaultValue] long wheelDeltaY,
50 in [Optional=CallWithDefaultValue] DOMWindow view,
51 in [Optional=CallWithDefaultValue] long screenX,
52 in [Optional=CallWithDefaultValue] long screenY,
53 in [Optional=CallWithDefaultValue] long clientX,
54 in [Optional=CallWithDefaultValue] long clientY,
55 in [Optional=CallWithDefaultValue] boolean ctrlKey,
56 in [Optional=CallWithDefaultValue] boolean altKey,
57 in [Optional=CallWithDefaultValue] boolean shiftKey,
58 in [Optional=CallWithDefaultValue] boolean metaKey);
59 #endif /* !defined(LANGUAGE_JAVASCRIPT) */
61 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
62 void initWebKitWheelEvent(in [Optional=CallWithDefaultValue] long wheelDeltaX,
63 in [Optional=CallWithDefaultValue] long wheelDeltaY,
64 in [Optional=CallWithDefaultValue] DOMWindow view,
65 in [Optional=CallWithDefaultValue] long screenX,
66 in [Optional=CallWithDefaultValue] long screenY,
67 in [Optional=CallWithDefaultValue] long clientX,
68 in [Optional=CallWithDefaultValue] long clientY,
69 in [Optional=CallWithDefaultValue] boolean ctrlKey,
70 in [Optional=CallWithDefaultValue] boolean altKey,
71 in [Optional=CallWithDefaultValue] boolean shiftKey,
72 in [Optional=CallWithDefaultValue] boolean metaKey);
73 #endif /* defined(LANGUAGE_JAVASCRIPT) */