| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 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 | 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, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 [ | 21 [ |
| 22 ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR, | 22 ConstructorConditional=DOM4_EVENTS_CONSTRUCTOR, |
| 23 ConstructorTemplate=Event | 23 ConstructorTemplate=Event |
| 24 ] interface WheelEvent : MouseEvent { | 24 ] interface WheelEvent : MouseEvent { |
| 25 const unsigned long DOM_DELTA_PIXEL = 0x00; |
| 26 const unsigned long DOM_DELTA_LINE = 0x01; |
| 27 const unsigned long DOM_DELTA_PAGE = 0x02; |
| 28 |
| 25 [InitializedByEventConstructor] readonly attribute long wheelDeltaX; | 29 [InitializedByEventConstructor] readonly attribute long wheelDeltaX; |
| 26 [InitializedByEventConstructor] readonly attribute long wheelDeltaY; | 30 [InitializedByEventConstructor] readonly attribute long wheelDeltaY; |
| 31 [InitializedByEventConstructor] readonly attribute unsigned long deltaMode; |
| 27 | 32 |
| 28 readonly attribute long wheelDelta; | 33 readonly attribute long wheelDelta; |
| 29 | 34 |
| 30 // WebKit Extension | 35 // WebKit Extension |
| 31 readonly attribute boolean webkitDirectionInvertedFromDevice; | 36 readonly attribute boolean webkitDirectionInvertedFromDevice; |
| 32 | 37 |
| 33 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C | 38 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C |
| 34 readonly attribute boolean isHorizontal; | 39 readonly attribute boolean isHorizontal; |
| 35 #endif /* defined(LANGUAGE_OBJECTIVE_C) */ | 40 #endif /* defined(LANGUAGE_OBJECTIVE_C) */ |
| 36 | 41 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 55 in [Optional=DefaultIsUndefined] long screenX, | 60 in [Optional=DefaultIsUndefined] long screenX, |
| 56 in [Optional=DefaultIsUndefined] long screenY, | 61 in [Optional=DefaultIsUndefined] long screenY, |
| 57 in [Optional=DefaultIsUndefined] long clientX, | 62 in [Optional=DefaultIsUndefined] long clientX, |
| 58 in [Optional=DefaultIsUndefined] long clientY, | 63 in [Optional=DefaultIsUndefined] long clientY, |
| 59 in [Optional=DefaultIsUndefined] boolean ctrlKey, | 64 in [Optional=DefaultIsUndefined] boolean ctrlKey, |
| 60 in [Optional=DefaultIsUndefined] boolean altKey, | 65 in [Optional=DefaultIsUndefined] boolean altKey, |
| 61 in [Optional=DefaultIsUndefined] boolean shiftKey, | 66 in [Optional=DefaultIsUndefined] boolean shiftKey, |
| 62 in [Optional=DefaultIsUndefined] boolean metaKey); | 67 in [Optional=DefaultIsUndefined] boolean metaKey); |
| 63 #endif /* defined(LANGUAGE_JAVASCRIPT) */ | 68 #endif /* defined(LANGUAGE_JAVASCRIPT) */ |
| 64 }; | 69 }; |
| OLD | NEW |