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

Unified Diff: cc/test/animation_test_common.cc

Issue 95763002: cc: Support animating scroll offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « cc/test/animation_test_common.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/animation_test_common.cc
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index 7ab26a5d8b548500392d6acf9b21ae4b0c8e0bf6..e6c67736c275c5502d41c8ed3094fbe0457cea07 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -205,6 +205,11 @@ void FakeLayerAnimationValueObserver::OnTransformAnimated(
transform_ = transform;
}
+void FakeLayerAnimationValueObserver::OnScrollOffsetAnimated(
+ gfx::Vector2dF scroll_offset) {
+ scroll_offset_ = scroll_offset;
+}
+
void FakeLayerAnimationValueObserver::OnAnimationWaitingForDeletion() {
animation_waiting_for_deletion_ = true;
}
@@ -217,6 +222,11 @@ bool FakeInactiveLayerAnimationValueObserver::IsActive() const {
return false;
}
+gfx::Vector2dF FakeLayerAnimationValueProvider::ScrollOffsetForAnimation()
+ const {
+ return scroll_offset_;
+}
+
scoped_ptr<cc::AnimationCurve> FakeFloatTransition::Clone() const {
return make_scoped_ptr(
new FakeFloatTransition(*this)).PassAs<cc::AnimationCurve>();
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698