| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
| 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 7 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 66 } |
| 67 | 67 |
| 68 static WheelEvent* create(const FloatPoint& wheelTicks, | 68 static WheelEvent* create(const FloatPoint& wheelTicks, |
| 69 const FloatPoint& rawDelta, | 69 const FloatPoint& rawDelta, |
| 70 unsigned deltaMode, | 70 unsigned deltaMode, |
| 71 AbstractView* view, | 71 AbstractView* view, |
| 72 const IntPoint& screenLocation, | 72 const IntPoint& screenLocation, |
| 73 const IntPoint& windowLocation, | 73 const IntPoint& windowLocation, |
| 74 PlatformEvent::Modifiers modifiers, | 74 PlatformEvent::Modifiers modifiers, |
| 75 unsigned short buttons, | 75 unsigned short buttons, |
| 76 double platformTimeStamp, | 76 TimeTicks platformTimeStamp, |
| 77 int resendingPluginId, | 77 int resendingPluginId, |
| 78 bool hasPreciseScrollingDeltas, | 78 bool hasPreciseScrollingDeltas, |
| 79 RailsMode railsMode, | 79 RailsMode railsMode, |
| 80 bool cancelable | 80 bool cancelable |
| 81 #if OS(MACOSX) | 81 #if OS(MACOSX) |
| 82 , | 82 , |
| 83 WheelEventPhase phase, | 83 WheelEventPhase phase, |
| 84 WheelEventPhase momentumPhase | 84 WheelEventPhase momentumPhase |
| 85 #endif | 85 #endif |
| 86 ) { | 86 ) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 WheelEvent(); | 135 WheelEvent(); |
| 136 WheelEvent(const AtomicString&, const WheelEventInit&); | 136 WheelEvent(const AtomicString&, const WheelEventInit&); |
| 137 WheelEvent(const FloatPoint& wheelTicks, | 137 WheelEvent(const FloatPoint& wheelTicks, |
| 138 const FloatPoint& rawDelta, | 138 const FloatPoint& rawDelta, |
| 139 unsigned, | 139 unsigned, |
| 140 AbstractView*, | 140 AbstractView*, |
| 141 const IntPoint& screenLocation, | 141 const IntPoint& screenLocation, |
| 142 const IntPoint& windowLocation, | 142 const IntPoint& windowLocation, |
| 143 PlatformEvent::Modifiers, | 143 PlatformEvent::Modifiers, |
| 144 unsigned short buttons, | 144 unsigned short buttons, |
| 145 double platformTimeStamp, | 145 TimeTicks platformTimeStamp, |
| 146 int resendingPluginId, | 146 int resendingPluginId, |
| 147 bool hasPreciseScrollingDeltas, | 147 bool hasPreciseScrollingDeltas, |
| 148 RailsMode, | 148 RailsMode, |
| 149 bool cancelable); | 149 bool cancelable); |
| 150 #if OS(MACOSX) | 150 #if OS(MACOSX) |
| 151 WheelEvent(const FloatPoint& wheelTicks, | 151 WheelEvent(const FloatPoint& wheelTicks, |
| 152 const FloatPoint& rawDelta, | 152 const FloatPoint& rawDelta, |
| 153 unsigned, | 153 unsigned, |
| 154 AbstractView*, | 154 AbstractView*, |
| 155 const IntPoint& screenLocation, | 155 const IntPoint& screenLocation, |
| 156 const IntPoint& windowLocation, | 156 const IntPoint& windowLocation, |
| 157 PlatformEvent::Modifiers, | 157 PlatformEvent::Modifiers, |
| 158 unsigned short buttons, | 158 unsigned short buttons, |
| 159 double platformTimeStamp, | 159 TimeTicks platformTimeStamp, |
| 160 int resendingPluginId, | 160 int resendingPluginId, |
| 161 bool hasPreciseScrollingDeltas, | 161 bool hasPreciseScrollingDeltas, |
| 162 RailsMode, | 162 RailsMode, |
| 163 bool cancelable, | 163 bool cancelable, |
| 164 WheelEventPhase phase, | 164 WheelEventPhase phase, |
| 165 WheelEventPhase momentumPhase); | 165 WheelEventPhase momentumPhase); |
| 166 #endif | 166 #endif |
| 167 | 167 |
| 168 IntPoint m_wheelDelta; | 168 IntPoint m_wheelDelta; |
| 169 double m_deltaX; | 169 double m_deltaX; |
| 170 double m_deltaY; | 170 double m_deltaY; |
| 171 double m_deltaZ; | 171 double m_deltaZ; |
| 172 unsigned m_deltaMode; | 172 unsigned m_deltaMode; |
| 173 int m_resendingPluginId; | 173 int m_resendingPluginId; |
| 174 bool m_hasPreciseScrollingDeltas; | 174 bool m_hasPreciseScrollingDeltas; |
| 175 RailsMode m_railsMode; | 175 RailsMode m_railsMode; |
| 176 #if OS(MACOSX) | 176 #if OS(MACOSX) |
| 177 WheelEventPhase m_phase; | 177 WheelEventPhase m_phase; |
| 178 WheelEventPhase m_momentumPhase; | 178 WheelEventPhase m_momentumPhase; |
| 179 #endif | 179 #endif |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 DEFINE_EVENT_TYPE_CASTS(WheelEvent); | 182 DEFINE_EVENT_TYPE_CASTS(WheelEvent); |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| 185 | 185 |
| 186 #endif // WheelEvent_h | 186 #endif // WheelEvent_h |
| OLD | NEW |