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

Unified Diff: Source/platform/PlatformWheelEvent.h

Issue 759073002: Add canScroll bit to WebMouseWheelEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/platform/PlatformWheelEvent.h
diff --git a/Source/platform/PlatformWheelEvent.h b/Source/platform/PlatformWheelEvent.h
index 7eebb25f43bd2eff3ea4270297a2f42631aec15b..09d927b70763b84fbeef6b33aca80c6bac0943b4 100644
--- a/Source/platform/PlatformWheelEvent.h
+++ b/Source/platform/PlatformWheelEvent.h
@@ -63,6 +63,7 @@ public:
, m_wheelTicksY(0)
, m_granularity(ScrollByPixelWheelEvent)
, m_hasPreciseScrollingDeltas(false)
+ , m_suppressScroll(false)
#if OS(MACOSX)
, m_phase(PlatformWheelEventPhaseNone)
, m_momentumPhase(PlatformWheelEventPhaseNone)
@@ -82,6 +83,7 @@ public:
, m_wheelTicksY(wheelTicksY)
, m_granularity(granularity)
, m_hasPreciseScrollingDeltas(false)
+ , m_suppressScroll(false)
#if OS(MACOSX)
, m_phase(PlatformWheelEventPhaseNone)
, m_momentumPhase(PlatformWheelEventPhaseNone)
@@ -104,6 +106,8 @@ public:
bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas; }
void setHasPreciseScrollingDeltas(bool b) { m_hasPreciseScrollingDeltas = b; }
+ bool suppressScroll() const { return m_suppressScroll; }
tdresser 2014/11/27 15:06:06 I think the naming should be changed here as well.
lanwei 2014/12/02 06:28:22 Done.
+ void setSuppressScroll(bool b) { m_suppressScroll = b; }
#if OS(MACOSX)
PlatformWheelEventPhase phase() const { return m_phase; }
PlatformWheelEventPhase momentumPhase() const { return m_momentumPhase; }
@@ -123,6 +127,7 @@ protected:
float m_wheelTicksY;
PlatformWheelEventGranularity m_granularity;
bool m_hasPreciseScrollingDeltas;
+ bool m_suppressScroll;
Rick Byers 2014/11/27 15:55:14 m_canScroll would be a name consistent with the ru
lanwei 2014/12/02 06:28:22 Done.
#if OS(MACOSX)
PlatformWheelEventPhase m_phase;
PlatformWheelEventPhase m_momentumPhase;

Powered by Google App Engine
This is Rietveld 408576698