| Index: Source/core/events/WheelEvent.h
|
| diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h
|
| index 3ce7e5845b13609fbb42e791ee387bfb51787d3e..2a09f68e1b916a58b06abb67014ce528470f35dc 100644
|
| --- a/Source/core/events/WheelEvent.h
|
| +++ b/Source/core/events/WheelEvent.h
|
| @@ -58,10 +58,10 @@ public:
|
| static PassRefPtrWillBeRawPtr<WheelEvent> create(const FloatPoint& wheelTicks,
|
| const FloatPoint& rawDelta, unsigned deltaMode, PassRefPtrWillBeRawPtr<AbstractView> view,
|
| const IntPoint& screenLocation, const IntPoint& windowLocation,
|
| - bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons, bool canScroll)
|
| + bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons, bool canScroll, bool hasPreciseScrollingDeltas)
|
| {
|
| return adoptRefWillBeNoop(new WheelEvent(wheelTicks, rawDelta, deltaMode, view,
|
| - screenLocation, windowLocation, ctrlKey, altKey, shiftKey, metaKey, buttons, canScroll));
|
| + screenLocation, windowLocation, ctrlKey, altKey, shiftKey, metaKey, buttons, canScroll, hasPreciseScrollingDeltas));
|
| }
|
|
|
| double deltaX() const { return m_deltaX; } // Positive when scrolling right.
|
| @@ -74,6 +74,7 @@ public:
|
| float ticksX() const { return static_cast<float>(m_wheelDelta.x()) / TickMultiplier; }
|
| float ticksY() const { return static_cast<float>(m_wheelDelta.y()) / TickMultiplier; }
|
| bool canScroll() const { return m_canScroll; }
|
| + bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas; }
|
|
|
| virtual const AtomicString& interfaceName() const override;
|
| virtual bool isMouseEvent() const override;
|
| @@ -86,7 +87,7 @@ private:
|
| WheelEvent(const AtomicString&, const WheelEventInit&);
|
| WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
|
| unsigned, PassRefPtrWillBeRawPtr<AbstractView>, const IntPoint& screenLocation, const IntPoint& windowLocation,
|
| - bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons, bool canScroll);
|
| + bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons, bool canScroll, bool hasPreciseScrollingDeltas);
|
|
|
| IntPoint m_wheelDelta;
|
| double m_deltaX;
|
| @@ -94,6 +95,7 @@ private:
|
| double m_deltaZ;
|
| unsigned m_deltaMode;
|
| bool m_canScroll;
|
| + bool m_hasPreciseScrollingDeltas;
|
| };
|
|
|
| DEFINE_EVENT_TYPE_CASTS(WheelEvent);
|
|
|