| 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, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 AbstractView* view, | 101 AbstractView* view, |
| 102 const IntPoint& screenLocation, | 102 const IntPoint& screenLocation, |
| 103 const IntPoint& windowLocation, | 103 const IntPoint& windowLocation, |
| 104 PlatformEvent::Modifiers modifiers, | 104 PlatformEvent::Modifiers modifiers, |
| 105 unsigned short buttons, | 105 unsigned short buttons, |
| 106 double platformTimeStamp, | 106 double platformTimeStamp, |
| 107 int resendingPluginId, | 107 int resendingPluginId, |
| 108 bool hasPreciseScrollingDeltas, | 108 bool hasPreciseScrollingDeltas, |
| 109 RailsMode railsMode, | 109 RailsMode railsMode, |
| 110 bool cancelable) | 110 bool cancelable) |
| 111 : MouseEvent( | 111 : MouseEvent(EventTypeNames::wheel, |
| 112 EventTypeNames::wheel, | 112 true, |
| 113 true, | 113 cancelable, |
| 114 cancelable, | 114 view, |
| 115 view, | 115 0, |
| 116 0, | 116 screenLocation.x(), |
| 117 screenLocation.x(), | 117 screenLocation.y(), |
| 118 screenLocation.y(), | 118 windowLocation.x(), |
| 119 windowLocation.x(), | 119 windowLocation.y(), |
| 120 windowLocation.y(), | 120 0, |
| 121 0, | 121 0, |
| 122 0, | 122 modifiers, |
| 123 modifiers, | 123 0, |
| 124 0, | 124 buttons, |
| 125 buttons, | 125 nullptr, |
| 126 nullptr, | 126 platformTimeStamp, |
| 127 platformTimeStamp, | 127 PlatformMouseEvent::RealOrIndistinguishable, |
| 128 PlatformMouseEvent::RealOrIndistinguishable, | 128 // TODO(zino): Should support canvas hit region because the |
| 129 // TODO(zino): Should support canvas hit region because the wheel even
t | 129 // wheel event is a kind of mouse event. Please see |
| 130 // is a kind of mouse event. Please see http://crbug.com/594075 | 130 // http://crbug.com/594075 |
| 131 String(), | 131 String(), |
| 132 nullptr), | 132 nullptr), |
| 133 m_wheelDelta(wheelTicks.x() * TickMultiplier, | 133 m_wheelDelta(wheelTicks.x() * TickMultiplier, |
| 134 wheelTicks.y() * TickMultiplier), | 134 wheelTicks.y() * TickMultiplier), |
| 135 m_deltaX(-rawDelta.x()), | 135 m_deltaX(-rawDelta.x()), |
| 136 m_deltaY(-rawDelta.y()), | 136 m_deltaY(-rawDelta.y()), |
| 137 m_deltaZ(0), | 137 m_deltaZ(0), |
| 138 m_deltaMode(deltaMode), | 138 m_deltaMode(deltaMode), |
| 139 m_resendingPluginId(resendingPluginId), | 139 m_resendingPluginId(resendingPluginId), |
| 140 m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas), | 140 m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas), |
| 141 m_railsMode(railsMode) | 141 m_railsMode(railsMode) |
| 142 #if OS(MACOSX) | 142 #if OS(MACOSX) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 156 const IntPoint& windowLocation, | 156 const IntPoint& windowLocation, |
| 157 PlatformEvent::Modifiers modifiers, | 157 PlatformEvent::Modifiers modifiers, |
| 158 unsigned short buttons, | 158 unsigned short buttons, |
| 159 double platformTimeStamp, | 159 double platformTimeStamp, |
| 160 int resendingPluginId, | 160 int resendingPluginId, |
| 161 bool hasPreciseScrollingDeltas, | 161 bool hasPreciseScrollingDeltas, |
| 162 RailsMode railsMode, | 162 RailsMode railsMode, |
| 163 bool cancelable, | 163 bool cancelable, |
| 164 WheelEventPhase phase, | 164 WheelEventPhase phase, |
| 165 WheelEventPhase momentumPhase) | 165 WheelEventPhase momentumPhase) |
| 166 : MouseEvent( | 166 : MouseEvent(EventTypeNames::wheel, |
| 167 EventTypeNames::wheel, | 167 true, |
| 168 true, | 168 cancelable, |
| 169 cancelable, | 169 view, |
| 170 view, | 170 0, |
| 171 0, | 171 screenLocation.x(), |
| 172 screenLocation.x(), | 172 screenLocation.y(), |
| 173 screenLocation.y(), | 173 windowLocation.x(), |
| 174 windowLocation.x(), | 174 windowLocation.y(), |
| 175 windowLocation.y(), | 175 0, |
| 176 0, | 176 0, |
| 177 0, | 177 modifiers, |
| 178 modifiers, | 178 0, |
| 179 0, | 179 buttons, |
| 180 buttons, | 180 nullptr, |
| 181 nullptr, | 181 platformTimeStamp, |
| 182 platformTimeStamp, | 182 PlatformMouseEvent::RealOrIndistinguishable, |
| 183 PlatformMouseEvent::RealOrIndistinguishable, | 183 // TODO(zino): Should support canvas hit region because the |
| 184 // TODO(zino): Should support canvas hit region because the wheel even
t | 184 // wheel event is a kind of mouse event. Please see |
| 185 // is a kind of mouse event. Please see http://crbug.com/594075 | 185 // http://crbug.com/594075 |
| 186 String(), | 186 String(), |
| 187 nullptr), | 187 nullptr), |
| 188 m_wheelDelta(wheelTicks.x() * TickMultiplier, | 188 m_wheelDelta(wheelTicks.x() * TickMultiplier, |
| 189 wheelTicks.y() * TickMultiplier), | 189 wheelTicks.y() * TickMultiplier), |
| 190 m_deltaX(-rawDelta.x()), | 190 m_deltaX(-rawDelta.x()), |
| 191 m_deltaY(-rawDelta.y()), | 191 m_deltaY(-rawDelta.y()), |
| 192 m_deltaZ(0), | 192 m_deltaZ(0), |
| 193 m_deltaMode(deltaMode), | 193 m_deltaMode(deltaMode), |
| 194 m_resendingPluginId(resendingPluginId), | 194 m_resendingPluginId(resendingPluginId), |
| 195 m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas), | 195 m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas), |
| 196 m_railsMode(railsMode), | 196 m_railsMode(railsMode), |
| 197 m_phase(phase), | 197 m_phase(phase), |
| (...skipping 14 matching lines...) Expand all Loading... |
| 212 | 212 |
| 213 EventDispatchMediator* WheelEvent::createMediator() { | 213 EventDispatchMediator* WheelEvent::createMediator() { |
| 214 return EventDispatchMediator::create(this); | 214 return EventDispatchMediator::create(this); |
| 215 } | 215 } |
| 216 | 216 |
| 217 DEFINE_TRACE(WheelEvent) { | 217 DEFINE_TRACE(WheelEvent) { |
| 218 MouseEvent::trace(visitor); | 218 MouseEvent::trace(visitor); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace blink | 221 } // namespace blink |
| OLD | NEW |