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

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

Issue 1158673006: Replace various ScrollableArea scroll methods with setScrollPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix 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/ScrollAnimatorNone.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 89d11727b2af8019e0d30a01d7e36715e5762b2e..c3a75baaf8d7347e88f2edb27db4f96257cb6f3e 100644
--- a/Source/platform/scroll/ScrollTypes.h
+++ b/Source/platform/scroll/ScrollTypes.h
@@ -49,6 +49,12 @@ enum ScrollDirectionPhysical {
ScrollRight
};
+enum ScrollType {
+ UserScroll,
+ ProgrammaticScroll,
+ CompositorScroll
+};
+
// Convert logical scroll direction to physical. Physical scroll directions are unaffected.
inline ScrollDirectionPhysical toPhysicalDirection(ScrollDirection direction, bool isVertical, bool isFlipped)
{
« no previous file with comments | « Source/platform/scroll/ScrollAnimatorNone.cpp ('k') | Source/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698