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

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: rebase Created 6 years 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.cpp ('k') | Source/web/WebInputEvent.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 7eebb25f43bd2eff3ea4270297a2f42631aec15b..fc36ffb137765dacc4348ade05fd8f90438d039c 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_canScroll(true)
#if OS(MACOSX)
, m_phase(PlatformWheelEventPhaseNone)
, m_momentumPhase(PlatformWheelEventPhaseNone)
@@ -82,6 +83,7 @@ public:
, m_wheelTicksY(wheelTicksY)
, m_granularity(granularity)
, m_hasPreciseScrollingDeltas(false)
+ , m_canScroll(true)
#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 canScroll() const { return m_canScroll; }
+ void setCanScroll(bool b) { m_canScroll = 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_canScroll;
#if OS(MACOSX)
PlatformWheelEventPhase m_phase;
PlatformWheelEventPhase m_momentumPhase;
« no previous file with comments | « Source/core/events/WheelEvent.cpp ('k') | Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698