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

Unified Diff: Source/platform/PlatformWheelEvent.h

Issue 197213011: Selectively disable rubber banding on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove all changes to ScrollElasticityController.{h,mm} Created 6 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 | « no previous file | 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 af8fe1a2a08ae7c6ababe30b6ea86cdd0976a33c..a2b9e0f947c6deb0ed7cd673ff705f73a3c41576 100644
--- a/Source/platform/PlatformWheelEvent.h
+++ b/Source/platform/PlatformWheelEvent.h
@@ -73,6 +73,8 @@ public:
, m_scrollCount(0)
, m_unacceleratedScrollingDeltaX(0)
, m_unacceleratedScrollingDeltaY(0)
+ , m_canRubberbandLeft(true)
+ , m_canRubberbandRight(true)
#endif
{
}
@@ -94,6 +96,8 @@ public:
, m_scrollCount(0)
, m_unacceleratedScrollingDeltaX(0)
, m_unacceleratedScrollingDeltaY(0)
+ , m_canRubberbandLeft(true)
+ , m_canRubberbandRight(true)
#endif
{
}
@@ -132,6 +136,8 @@ public:
float unacceleratedScrollingDeltaX() const { return m_unacceleratedScrollingDeltaX; }
float unacceleratedScrollingDeltaY() const { return m_unacceleratedScrollingDeltaY; }
bool useLatchedEventNode() const { return m_momentumPhase == PlatformWheelEventPhaseBegan || m_momentumPhase == PlatformWheelEventPhaseChanged; }
+ bool canRubberbandLeft() const { return m_canRubberbandLeft; }
+ bool canRubberbandRight() const { return m_canRubberbandRight; }
#else
bool useLatchedEventNode() const { return false; }
#endif
@@ -152,6 +158,8 @@ protected:
unsigned m_scrollCount;
float m_unacceleratedScrollingDeltaX;
float m_unacceleratedScrollingDeltaY;
+ bool m_canRubberbandLeft;
+ bool m_canRubberbandRight;
#endif
};
« no previous file with comments | « no previous file | Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698