| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 int id() const { return layer_id_; } | 90 int id() const { return layer_id_; } |
| 91 | 91 |
| 92 // Interactions with attached animations. | 92 // Interactions with attached animations. |
| 93 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 93 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 94 void OnFilterAnimated(const FilterOperations& filters); | 94 void OnFilterAnimated(const FilterOperations& filters); |
| 95 void OnOpacityAnimated(float opacity); | 95 void OnOpacityAnimated(float opacity); |
| 96 void OnTransformAnimated(const gfx::Transform& transform); | 96 void OnTransformAnimated(const gfx::Transform& transform); |
| 97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 98 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); | 98 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); |
| 99 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); |
| 100 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); |
| 99 bool IsActive() const; | 101 bool IsActive() const; |
| 100 bool OpacityCanAnimateOnImplThread() const { return false; } | 102 bool OpacityCanAnimateOnImplThread() const { return false; } |
| 101 | 103 |
| 102 // Tree structure. | 104 // Tree structure. |
| 103 LayerImpl* parent() { return parent_; } | 105 LayerImpl* parent() { return parent_; } |
| 104 LayerImplList& children() { return children_; } | 106 LayerImplList& children() { return children_; } |
| 105 LayerImpl* child_at(size_t index) const { return children_[index]; } | 107 LayerImpl* child_at(size_t index) const { return children_[index]; } |
| 106 void AddChild(std::unique_ptr<LayerImpl> child); | 108 void AddChild(std::unique_ptr<LayerImpl> child); |
| 107 std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child); | 109 std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child); |
| 108 void SetParent(LayerImpl* parent); | 110 void SetParent(LayerImpl* parent); |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 bool scrolls_drawn_descendant_; | 663 bool scrolls_drawn_descendant_; |
| 662 // If true, the layer or one of its descendants has a touch handler. | 664 // If true, the layer or one of its descendants has a touch handler. |
| 663 bool layer_or_descendant_has_touch_handler_; | 665 bool layer_or_descendant_has_touch_handler_; |
| 664 | 666 |
| 665 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 667 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 666 }; | 668 }; |
| 667 | 669 |
| 668 } // namespace cc | 670 } // namespace cc |
| 669 | 671 |
| 670 #endif // CC_LAYERS_LAYER_IMPL_H_ | 672 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |