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

Unified Diff: cc/layers/layer_impl.h

Issue 1766053002: Clean LayerImpl's scroll offset callers in unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ScrollDelta Created 4 years, 9 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: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 91d3e0ded45a94a48f336998b2eb7c9d4a1d80f1..1fab5d9cdb9592d6b22b58b2319e35d11a5e83e6 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -448,16 +448,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
gfx::Vector2dF bounds_delta() const { return bounds_delta_; }
void SetCurrentScrollOffset(const gfx::ScrollOffset& scroll_offset);
- // must only be called by tests when updating scroll offset of a single layer,
- // the standard process to update scroll offsets is to call
- // ScrollTree::UpdateScrollOffsetMap() which updates scroll offsets of all
- // layers.
- void PushScrollOffsetFromMainThread(const gfx::ScrollOffset& scroll_offset);
-
gfx::ScrollOffset CurrentScrollOffset() const;
- gfx::ScrollOffset BaseScrollOffset() const;
- gfx::Vector2dF ScrollDelta() const;
- void SetScrollDelta(const gfx::Vector2dF& delta);
gfx::ScrollOffset MaxScrollOffset() const;
gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset) const;

Powered by Google App Engine
This is Rietveld 408576698