blob: 1445509431407c905d0716f7893c8b6d40c470c8 [file] [log] [blame]
darinb9481ed2006-03-20 02:57:59 +00001/*
weinig@apple.coma4a4cff2007-12-30 22:24:47 +00002 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
weinigf83c3e82006-09-07 17:08:48 +00003 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
darinb9481ed2006-03-20 02:57:59 +00004 *
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.
9 *
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.
14 *
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
ddkilzerc8eccec2007-09-26 02:29:57 +000017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
darinb9481ed2006-03-20 02:57:59 +000019 */
20
21module events {
22
weinigeb030302006-09-09 22:05:58 +000023 // Based off of proposed IDL interface for WheelEvent:
weinig@apple.coma4a4cff2007-12-30 22:24:47 +000024 interface [
25 GenerateConstructor
26 ] WheelEvent : UIEvent {
weinigeb030302006-09-09 22:05:58 +000027 readonly attribute long screenX;
28 readonly attribute long screenY;
darinb9481ed2006-03-20 02:57:59 +000029 readonly attribute long clientX;
30 readonly attribute long clientY;
31 readonly attribute boolean ctrlKey;
darinb9481ed2006-03-20 02:57:59 +000032 readonly attribute boolean shiftKey;
weinigeb030302006-09-09 22:05:58 +000033 readonly attribute boolean altKey;
34 readonly attribute boolean metaKey;
darinb9481ed2006-03-20 02:57:59 +000035 readonly attribute long wheelDelta;
hyatt4f172f92006-09-20 09:52:25 +000036 readonly attribute long wheelDeltaX;
37 readonly attribute long wheelDeltaY;
darinb9481ed2006-03-20 02:57:59 +000038
weinigf83c3e82006-09-07 17:08:48 +000039 // WebKit Extensions
weinigeb030302006-09-09 22:05:58 +000040 readonly attribute long offsetX;
41 readonly attribute long offsetY;
42 readonly attribute long x;
43 readonly attribute long y;
weinigf83c3e82006-09-07 17:08:48 +000044
weinigd92deed2006-09-20 14:23:03 +000045#if defined(LANGUAGE_OBJECTIVE_C)
46 readonly attribute boolean isHorizontal;
47#endif /* defined(LANGUAGE_OBJECTIVE_C) */
48
weinig100b4c62006-09-11 17:11:59 +000049#if !defined(LANGUAGE_JAVASCRIPT)
hyatt4f172f92006-09-20 09:52:25 +000050 void initWheelEvent(in long wheelDeltaX,
51 in long wheelDeltaY,
weinig100b4c62006-09-11 17:11:59 +000052 in DOMWindow view,
53 in long screenX,
54 in long screenY,
55 in long clientX,
56 in long clientY,
57 in boolean ctrlKey,
58 in boolean altKey,
59 in boolean shiftKey,
60 in boolean metaKey);
weinigd92deed2006-09-20 14:23:03 +000061#endif /* !defined(LANGUAGE_JAVASCRIPT) */
darinb9481ed2006-03-20 02:57:59 +000062 };
63
64}