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

Unified Diff: cc/animation/layer_animation_value_provider.h

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/animation/layer_animation_value_observer.h ('k') | cc/animation/scroll_offset_animation_curve.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/layer_animation_value_provider.h
diff --git a/cc/animation/layer_animation_value_provider.h b/cc/animation/layer_animation_value_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..c81496883ed1f1cc019b65fe7e60ceda404b80c2
--- /dev/null
+++ b/cc/animation/layer_animation_value_provider.h
@@ -0,0 +1,25 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_ANIMATION_LAYER_ANIMATION_VALUE_PROVIDER_H_
+#define CC_ANIMATION_LAYER_ANIMATION_VALUE_PROVIDER_H_
+
+#include "cc/base/cc_export.h"
+#include "ui/gfx/vector2d_f.h"
+
+namespace cc {
+
+// A LayerAnimationValueProvider is used for determining the starting value
+// for animations that start at their 'current' value rather than at a
+// pre-specified value.
+class CC_EXPORT LayerAnimationValueProvider {
+ public:
+ virtual ~LayerAnimationValueProvider() {}
+
+ virtual gfx::Vector2dF ScrollOffsetForAnimation() const = 0;
+};
+
+} // namespace cc
+
+#endif // CC_ANIMATION_LAYER_ANIMATION_VALUE_PROVIDER_H_
« no previous file with comments | « cc/animation/layer_animation_value_observer.h ('k') | cc/animation/scroll_offset_animation_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698