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

Unified Diff: Source/core/frame/FrameView.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/core/dom/Element.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index 9646e5cac4e42e5379f375588625d0c68c99c1f7..754075a5e76f3aa9ea74055ab53055a9199db551 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -170,7 +170,7 @@ public:
IntSize inputEventsOffsetForEmulation() const;
void setInputEventsTransformForEmulation(const IntSize&, float);
- virtual void setScrollPosition(const DoublePoint&, ScrollBehavior = ScrollBehaviorInstant) override;
+ virtual void setScrollPosition(const DoublePoint&, ScrollType, ScrollBehavior = ScrollBehaviorInstant) override;
FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
void setElasticOverscroll(const FloatSize&);
@@ -353,8 +353,6 @@ public:
virtual GraphicsLayer* layerForVerticalScrollbar() const override;
virtual GraphicsLayer* layerForScrollCorner() const override;
virtual int scrollSize(ScrollbarOrientation) const override;
- virtual void setScrollOffset(const IntPoint&) override;
- virtual void setScrollOffset(const DoublePoint&) override;
virtual bool isScrollCornerVisible() const override;
virtual bool userInputScrollable(ScrollbarOrientation) const override;
virtual bool shouldPlaceVerticalScrollbarOnLeft() const override;
@@ -440,12 +438,6 @@ public:
void cacheCurrentScrollPosition() { m_cachedScrollPosition = scrollPositionDouble(); }
DoublePoint cachedScrollPosition() const { return m_cachedScrollPosition; }
- // Functions for scrolling the view.
- void scrollBy(const DoubleSize& s, ScrollBehavior behavior = ScrollBehaviorInstant)
- {
- return setScrollPosition(scrollPositionDouble() + s, behavior);
- }
-
// Scroll the actual contents of the view (either blitting or invalidating as needed).
void scrollContents(const IntSize& scrollDelta);
@@ -615,6 +607,9 @@ protected:
private:
explicit FrameView(LocalFrame*);
+ virtual void setScrollOffset(const IntPoint&, ScrollType) override;
+ virtual void setScrollOffset(const DoublePoint&, ScrollType) override;
+
void updateLayoutAndStyleForPaintingInternal();
void invalidateTreeIfNeededRecursive();
void scrollContentsIfNeededRecursive();
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698