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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 , m_railsMode(RailsModeFree) | 69 , m_railsMode(RailsModeFree) |
70 { | 70 { |
71 } | 71 } |
72 | 72 |
73 WheelEvent::WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
unsigned deltaMode, | 73 WheelEvent::WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
unsigned deltaMode, |
74 PassRefPtrWillBeRawPtr<AbstractView> view, const IntPoint& screenLocation, c
onst IntPoint& windowLocation, | 74 PassRefPtrWillBeRawPtr<AbstractView> view, const IntPoint& screenLocation, c
onst IntPoint& windowLocation, |
75 PlatformEvent::Modifiers modifiers, unsigned short buttons, double platformT
imeStamp, | 75 PlatformEvent::Modifiers modifiers, unsigned short buttons, double platformT
imeStamp, |
76 bool canScroll, int resendingPluginId, bool hasPreciseScrollingDeltas, Rails
Mode railsMode) | 76 bool canScroll, int resendingPluginId, bool hasPreciseScrollingDeltas, Rails
Mode railsMode) |
77 : MouseEvent(EventTypeNames::wheel, true, true, view, 0, screenLocation.x(),
screenLocation.y(), | 77 : MouseEvent(EventTypeNames::wheel, true, true, view, 0, screenLocation.x(),
screenLocation.y(), |
78 windowLocation.x(), windowLocation.y(), 0, 0, modifiers, 0, buttons, | 78 windowLocation.x(), windowLocation.y(), 0, 0, modifiers, 0, buttons, |
79 nullptr, platformTimeStamp, PlatformMouseEvent::RealOrIndistinguishable) | 79 nullptr, platformTimeStamp, PlatformMouseEvent::RealOrIndistinguishable, |
| 80 // TODO(zino): Should support canvas hit region because the wheel event |
| 81 // is a kind of mouse event. Please see http://crbug.com/594075 |
| 82 String()) |
80 , m_wheelDelta(wheelTicks.x() * TickMultiplier, wheelTicks.y() * TickMultipl
ier) | 83 , m_wheelDelta(wheelTicks.x() * TickMultiplier, wheelTicks.y() * TickMultipl
ier) |
81 , m_deltaX(-rawDelta.x()) | 84 , m_deltaX(-rawDelta.x()) |
82 , m_deltaY(-rawDelta.y()) | 85 , m_deltaY(-rawDelta.y()) |
83 , m_deltaZ(0) | 86 , m_deltaZ(0) |
84 , m_deltaMode(deltaMode) | 87 , m_deltaMode(deltaMode) |
85 , m_canScroll(canScroll) | 88 , m_canScroll(canScroll) |
86 , m_resendingPluginId(resendingPluginId) | 89 , m_resendingPluginId(resendingPluginId) |
87 , m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas) | 90 , m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas) |
88 , m_railsMode(railsMode) | 91 , m_railsMode(railsMode) |
89 { | 92 { |
(...skipping 18 matching lines...) Expand all Loading... |
108 { | 111 { |
109 return EventDispatchMediator::create(this); | 112 return EventDispatchMediator::create(this); |
110 } | 113 } |
111 | 114 |
112 DEFINE_TRACE(WheelEvent) | 115 DEFINE_TRACE(WheelEvent) |
113 { | 116 { |
114 MouseEvent::trace(visitor); | 117 MouseEvent::trace(visitor); |
115 } | 118 } |
116 | 119 |
117 } // namespace blink | 120 } // namespace blink |
OLD | NEW |