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

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: Rebase 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
Index: Source/platform/scroll/ScrollTypes.h
diff --git a/Source/platform/scroll/ScrollTypes.h b/Source/platform/scroll/ScrollTypes.h
index ab1cd234d43aff3976204adccee2fd50c28715af..f1e424b1f349ab76abc60d9e994581e46f29400e 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)
{

Powered by Google App Engine
This is Rietveld 408576698