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

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

Issue 1018183002: Add rails to input wheel events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More plumbing and tests Created 5 years, 9 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/Event.h ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/WheelEvent.h
diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h
index 0ce1003c3b1fee726b9238bcc1b86bdf06fa9503..52e66f6d60151fa82dc486d9b7847d74b1b4354a 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 hasPreciseScrollingDeltas)
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons, bool canScroll, bool hasPreciseScrollingDeltas, RailsMode railsMode)
{
return adoptRefWillBeNoop(new WheelEvent(wheelTicks, rawDelta, deltaMode, view,
- screenLocation, windowLocation, ctrlKey, altKey, shiftKey, metaKey, buttons, canScroll, hasPreciseScrollingDeltas));
+ screenLocation, windowLocation, ctrlKey, altKey, shiftKey, metaKey, buttons, canScroll, hasPreciseScrollingDeltas, railsMode));
}
double deltaX() const { return m_deltaX; } // Positive when scrolling right.
@@ -75,6 +75,7 @@ public:
float ticksY() const { return static_cast<float>(m_wheelDelta.y()) / TickMultiplier; }
bool canScroll() const { return m_canScroll; }
bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas; }
+ RailsMode railsMode() const { return m_railsMode; }
virtual const AtomicString& interfaceName() const override;
virtual bool isMouseEvent() const override;
@@ -87,7 +88,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 hasPreciseScrollingDeltas);
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short buttons, bool canScroll, bool hasPreciseScrollingDeltas, RailsMode);
IntPoint m_wheelDelta;
double m_deltaX;
@@ -96,6 +97,7 @@ private:
unsigned m_deltaMode;
bool m_canScroll;
bool m_hasPreciseScrollingDeltas;
+ RailsMode m_railsMode;
};
DEFINE_EVENT_TYPE_CASTS(WheelEvent);
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698