Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1032)

Unified Diff: Source/core/events/WheelEvent.h

Issue 831393003: Plumb hasPreciseScrollingDeltas into ScrollGranularity for overflow scrolls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove testRunner.dumpAsText() Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « LayoutTests/fast/scroll-behavior/precise-delta-no-animate-expected.txt ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698