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

Unified Diff: Source/platform/scroll/ScrollAnimator.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/mac/ScrollAnimatorMac.mm ('k') | Source/platform/scroll/ScrollAnimator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollAnimator.h
diff --git a/Source/platform/scroll/ScrollAnimator.h b/Source/platform/scroll/ScrollAnimator.h
index be6d8bd21caf9498715c1987b984a76ab3e71a39..7aa38dd4ef6ad0117a9483017bf74ffda90a2ec3 100644
--- a/Source/platform/scroll/ScrollAnimator.h
+++ b/Source/platform/scroll/ScrollAnimator.h
@@ -57,7 +57,7 @@ public:
// class implementation always scrolls immediately, never animates.
virtual ScrollResultOneDimensional userScroll(ScrollbarOrientation, ScrollGranularity, float step, float delta);
- virtual void scrollToOffsetWithoutAnimation(const FloatPoint&);
+ virtual void scrollToOffsetWithoutAnimation(const FloatPoint&, ScrollType);
ScrollableArea* scrollableArea() const { return m_scrollableArea; }
@@ -103,7 +103,7 @@ public:
protected:
explicit ScrollAnimator(ScrollableArea*);
- virtual void notifyPositionChanged();
+ virtual void notifyPositionChanged(ScrollType);
ScrollableArea* m_scrollableArea;
float m_currentPosX; // We avoid using a FloatPoint in order to reduce
« no previous file with comments | « Source/platform/mac/ScrollAnimatorMac.mm ('k') | Source/platform/scroll/ScrollAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698