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

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

Issue 879163002: Hook up window.scrollTo and friends. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sa
Patch Set: rebase Created 5 years, 11 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/ScrollableArea.h
diff --git a/Source/platform/scroll/ScrollableArea.h b/Source/platform/scroll/ScrollableArea.h
index dc46b005107eaa64077e491e76c25ef0f7f64ca6..dbaa2af080eece0c84c5343bf3c196ec65906624 100644
--- a/Source/platform/scroll/ScrollableArea.h
+++ b/Source/platform/scroll/ScrollableArea.h
@@ -65,6 +65,7 @@ public:
virtual HostWindow* hostWindow() const { return 0; };
bool scroll(ScrollDirection, ScrollGranularity, float delta = 1);
+ virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBehaviorInstant);
void scrollToOffsetWithoutAnimation(const FloatPoint&, bool cancelProgrammaticAnimations = true);
void scrollToOffsetWithoutAnimation(ScrollbarOrientation, float offset);

Powered by Google App Engine
This is Rietveld 408576698