OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_LAYER_IMPL_H_ |
6 #define CC_LAYERS_LAYER_IMPL_H_ | 6 #define CC_LAYERS_LAYER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // LayerAnimationValueObserver implementation. | 103 // LayerAnimationValueObserver implementation. |
104 virtual void OnFilterAnimated(const FilterOperations& filters) override; | 104 virtual void OnFilterAnimated(const FilterOperations& filters) override; |
105 virtual void OnOpacityAnimated(float opacity) override; | 105 virtual void OnOpacityAnimated(float opacity) override; |
106 virtual void OnTransformAnimated(const gfx::Transform& transform) override; | 106 virtual void OnTransformAnimated(const gfx::Transform& transform) override; |
107 virtual void OnScrollOffsetAnimated( | 107 virtual void OnScrollOffsetAnimated( |
108 const gfx::ScrollOffset& scroll_offset) override; | 108 const gfx::ScrollOffset& scroll_offset) override; |
109 virtual void OnAnimationWaitingForDeletion() override; | 109 virtual void OnAnimationWaitingForDeletion() override; |
110 virtual bool IsActive() const override; | 110 virtual bool IsActive() const override; |
111 | 111 |
112 // AnimationDelegate implementation. | 112 // AnimationDelegate implementation. |
113 virtual void NotifyAnimationStarted( | 113 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
114 base::TimeTicks monotonic_time, | 114 Animation::TargetProperty target_property, |
115 Animation::TargetProperty target_property) override{}; | 115 int group) override{}; |
116 virtual void NotifyAnimationFinished( | 116 virtual void NotifyAnimationFinished( |
117 base::TimeTicks monotonic_time, | 117 base::TimeTicks monotonic_time, |
118 Animation::TargetProperty target_property) override; | 118 Animation::TargetProperty target_property, |
| 119 int group) override; |
119 | 120 |
120 // Tree structure. | 121 // Tree structure. |
121 LayerImpl* parent() { return parent_; } | 122 LayerImpl* parent() { return parent_; } |
122 const LayerImpl* parent() const { return parent_; } | 123 const LayerImpl* parent() const { return parent_; } |
123 const OwnedLayerImplList& children() const { return children_; } | 124 const OwnedLayerImplList& children() const { return children_; } |
124 OwnedLayerImplList& children() { return children_; } | 125 OwnedLayerImplList& children() { return children_; } |
125 LayerImpl* child_at(size_t index) const { return children_[index]; } | 126 LayerImpl* child_at(size_t index) const { return children_[index]; } |
126 void AddChild(scoped_ptr<LayerImpl> child); | 127 void AddChild(scoped_ptr<LayerImpl> child); |
127 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); | 128 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); |
128 void SetParent(LayerImpl* parent); | 129 void SetParent(LayerImpl* parent); |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 DrawProperties<LayerImpl> draw_properties_; | 708 DrawProperties<LayerImpl> draw_properties_; |
708 | 709 |
709 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 710 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
710 | 711 |
711 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 712 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
712 }; | 713 }; |
713 | 714 |
714 } // namespace cc | 715 } // namespace cc |
715 | 716 |
716 #endif // CC_LAYERS_LAYER_IMPL_H_ | 717 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |