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

Unified Diff: Source/platform/PlatformWheelEvent.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/platform/PlatformEvent.h ('k') | Source/platform/scroll/ScrollAnimator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformWheelEvent.h
diff --git a/Source/platform/PlatformWheelEvent.h b/Source/platform/PlatformWheelEvent.h
index fc36ffb137765dacc4348ade05fd8f90438d039c..3e50679d71d78f1fdd08b33cd45be5c242191a8c 100644
--- a/Source/platform/PlatformWheelEvent.h
+++ b/Source/platform/PlatformWheelEvent.h
@@ -64,6 +64,7 @@ public:
, m_granularity(ScrollByPixelWheelEvent)
, m_hasPreciseScrollingDeltas(false)
, m_canScroll(true)
+ , m_railsMode(RailsModeFree)
#if OS(MACOSX)
, m_phase(PlatformWheelEventPhaseNone)
, m_momentumPhase(PlatformWheelEventPhaseNone)
@@ -84,6 +85,7 @@ public:
, m_granularity(granularity)
, m_hasPreciseScrollingDeltas(false)
, m_canScroll(true)
+ , m_railsMode(RailsModeFree)
#if OS(MACOSX)
, m_phase(PlatformWheelEventPhaseNone)
, m_momentumPhase(PlatformWheelEventPhaseNone)
@@ -108,6 +110,8 @@ public:
void setHasPreciseScrollingDeltas(bool b) { m_hasPreciseScrollingDeltas = b; }
bool canScroll() const { return m_canScroll; }
void setCanScroll(bool b) { m_canScroll = b; }
+ RailsMode railsMode() const { return m_railsMode; }
+
#if OS(MACOSX)
PlatformWheelEventPhase phase() const { return m_phase; }
PlatformWheelEventPhase momentumPhase() const { return m_momentumPhase; }
@@ -128,6 +132,7 @@ protected:
PlatformWheelEventGranularity m_granularity;
bool m_hasPreciseScrollingDeltas;
bool m_canScroll;
+ RailsMode m_railsMode;
#if OS(MACOSX)
PlatformWheelEventPhase m_phase;
PlatformWheelEventPhase m_momentumPhase;
« no previous file with comments | « Source/platform/PlatformEvent.h ('k') | Source/platform/scroll/ScrollAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698