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

Unified Diff: cc/layers/layer.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/cc.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 9af3dea7c7de4f3165334cc6da8e3bfbe36ce105..d246eb872cd27e91d1f122af66e14362c4a5d671 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -13,6 +13,7 @@
#include "base/observer_list.h"
#include "cc/animation/layer_animation_controller.h"
#include "cc/animation/layer_animation_value_observer.h"
+#include "cc/animation/layer_animation_value_provider.h"
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
#include "cc/base/scoped_ptr_vector.h"
@@ -59,7 +60,8 @@ struct AnimationEvent;
// Base class for composited layers. Special layer types are derived from
// this class.
class CC_EXPORT Layer : public base::RefCounted<Layer>,
- public LayerAnimationValueObserver {
+ public LayerAnimationValueObserver,
+ public LayerAnimationValueProvider {
public:
typedef RenderSurfaceLayerList RenderSurfaceListType;
typedef LayerList LayerListType;
@@ -538,10 +540,14 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// This should only be called from RemoveFromParent().
void RemoveChildOrDependent(Layer* child);
+ // LayerAnimationValueProvider implementation.
+ virtual gfx::Vector2dF ScrollOffsetForAnimation() const OVERRIDE;
+
// LayerAnimationValueObserver implementation.
virtual void OnFilterAnimated(const FilterOperations& filters) OVERRIDE;
virtual void OnOpacityAnimated(float opacity) OVERRIDE;
virtual void OnTransformAnimated(const gfx::Transform& transform) OVERRIDE;
+ virtual void OnScrollOffsetAnimated(gfx::Vector2dF scroll_offset) OVERRIDE;
virtual void OnAnimationWaitingForDeletion() OVERRIDE;
virtual bool IsActive() const OVERRIDE;
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698