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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 ScriptWrappable::init(this); | 61 ScriptWrappable::init(this); |
62 } | 62 } |
63 | 63 |
64 WheelEvent::WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
unsigned deltaMode, | 64 WheelEvent::WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
unsigned deltaMode, |
65 PassRefPtr<AbstractView> view, const IntPoint& screenLocation, const IntPoin
t& pageLocation, | 65 PassRefPtr<AbstractView> view, const IntPoint& screenLocation, const IntPoin
t& pageLocation, |
66 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool directionInvert
edFromDevice) | 66 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool directionInvert
edFromDevice) |
67 : MouseEvent(EventTypeNames::wheel, | 67 : MouseEvent(EventTypeNames::wheel, |
68 true, true, view, 0, screenLocation.x(), screenLocation.y(), | 68 true, true, view, 0, screenLocation.x(), screenLocation.y(), |
69 pageLocation.x(), pageLocation.y(), | 69 pageLocation.x(), pageLocation.y(), |
70 0, 0, | 70 0, 0, |
71 ctrlKey, altKey, shiftKey, metaKey, 0, 0, 0, false) | 71 ctrlKey, altKey, shiftKey, metaKey, 0, nullptr, nullptr, false) |
72 , m_wheelDelta(wheelTicks.x() * TickMultiplier, wheelTicks.y() * TickMultipl
ier) | 72 , m_wheelDelta(wheelTicks.x() * TickMultiplier, wheelTicks.y() * TickMultipl
ier) |
73 , m_deltaX(-rawDelta.x()) | 73 , m_deltaX(-rawDelta.x()) |
74 , m_deltaY(-rawDelta.y()) | 74 , m_deltaY(-rawDelta.y()) |
75 , m_deltaZ(0) | 75 , m_deltaZ(0) |
76 , m_deltaMode(deltaMode) | 76 , m_deltaMode(deltaMode) |
77 , m_directionInvertedFromDevice(directionInvertedFromDevice) | 77 , m_directionInvertedFromDevice(directionInvertedFromDevice) |
78 { | 78 { |
79 ScriptWrappable::init(this); | 79 ScriptWrappable::init(this); |
80 } | 80 } |
81 | 81 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 return toWheelEvent(EventDispatchMediator::event()); | 151 return toWheelEvent(EventDispatchMediator::event()); |
152 } | 152 } |
153 | 153 |
154 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t | 154 bool WheelEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons
t |
155 { | 155 { |
156 ASSERT(event()); | 156 ASSERT(event()); |
157 return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->default
Handled(); | 157 return EventDispatchMediator::dispatchEvent(dispatcher) && !event()->default
Handled(); |
158 } | 158 } |
159 | 159 |
160 } // namespace WebCore | 160 } // namespace WebCore |
OLD | NEW |