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

Unified Diff: Source/platform/scroll/ScrollTypes.h

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased to latest Created 5 years, 6 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/scroll/ScrollAnimator.cpp ('k') | Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollTypes.h
diff --git a/Source/platform/scroll/ScrollTypes.h b/Source/platform/scroll/ScrollTypes.h
index ab1cd234d43aff3976204adccee2fd50c28715af..89d11727b2af8019e0d30a01d7e36715e5762b2e 100644
--- a/Source/platform/scroll/ScrollTypes.h
+++ b/Source/platform/scroll/ScrollTypes.h
@@ -193,16 +193,21 @@ struct ScrollResultOneDimensional {
};
struct ScrollResult {
- explicit ScrollResult(bool didScroll)
- : didScroll(didScroll)
+ explicit ScrollResult()
+ : didScrollX(false)
+ , didScrollY(false)
, unusedScrollDeltaX(0)
, unusedScrollDeltaY(0) { }
- ScrollResult(bool didScroll, float unusedScrollDeltaX, float unusedScrollDeltaY)
- : didScroll(didScroll)
+ ScrollResult(bool didScrollX, bool didScrollY, float unusedScrollDeltaX, float unusedScrollDeltaY)
+ : didScrollX(didScrollX)
+ , didScrollY(didScrollY)
, unusedScrollDeltaX(unusedScrollDeltaX)
, unusedScrollDeltaY(unusedScrollDeltaY) { }
- bool didScroll;
+ bool didScroll() { return didScrollX || didScrollY; }
+
+ bool didScrollX;
+ bool didScrollY;
float unusedScrollDeltaX;
float unusedScrollDeltaY;
};
« no previous file with comments | « Source/platform/scroll/ScrollAnimator.cpp ('k') | Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698