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

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

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
« no previous file with comments | « Source/core/events/WheelEvent.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/WheelEvent.cpp
diff --git a/Source/core/events/WheelEvent.cpp b/Source/core/events/WheelEvent.cpp
index 6292fe52f4bd33c7815772f0425bb96b91f95527..6af9dfe1eb84db39ff8b0ea3ac9b5c128951992b 100644
--- a/Source/core/events/WheelEvent.cpp
+++ b/Source/core/events/WheelEvent.cpp
@@ -36,6 +36,7 @@ WheelEvent::WheelEvent()
, m_deltaZ(0)
, m_deltaMode(DOM_DELTA_PIXEL)
, m_canScroll(true)
+ , m_hasPreciseScrollingDeltas(false)
{
}
@@ -47,12 +48,13 @@ WheelEvent::WheelEvent(const AtomicString& type, const WheelEventInit& initializ
, m_deltaZ(initializer.deltaZ())
, m_deltaMode(initializer.deltaMode())
, m_canScroll(true)
+ , m_hasPreciseScrollingDeltas(false)
{
}
WheelEvent::WheelEvent(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)
: MouseEvent(EventTypeNames::wheel, true, true, view, 0, screenLocation.x(), screenLocation.y(),
windowLocation.x(), windowLocation.y(), 0, 0, ctrlKey, altKey, shiftKey, metaKey, 0, buttons,
nullptr, nullptr, false, PlatformMouseEvent::RealOrIndistinguishable)
@@ -62,6 +64,7 @@ WheelEvent::WheelEvent(const FloatPoint& wheelTicks, const FloatPoint& rawDelta,
, m_deltaZ(0)
, m_deltaMode(deltaMode)
, m_canScroll(canScroll)
+ , m_hasPreciseScrollingDeltas(hasPreciseScrollingDeltas)
{
}
@@ -101,7 +104,7 @@ WheelEventDispatchMediator::WheelEventDispatchMediator(const PlatformWheelEvent&
deltaMode(event), view, event.globalPosition(), event.position(),
event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(),
MouseEvent::platformModifiersToButtons(event.modifiers()),
- event.canScroll()));
+ event.canScroll(), event.hasPreciseScrollingDeltas()));
}
WheelEvent& WheelEventDispatchMediator::event() const
« no previous file with comments | « Source/core/events/WheelEvent.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698