| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 friend class LayerTreeHost; | 552 friend class LayerTreeHost; |
| 553 friend class LayerTree; | 553 friend class LayerTree; |
| 554 friend class LayerInternalsForTest; | 554 friend class LayerInternalsForTest; |
| 555 | 555 |
| 556 // Interactions with attached animations. | 556 // Interactions with attached animations. |
| 557 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 557 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 558 void OnFilterAnimated(const FilterOperations& filters); | 558 void OnFilterAnimated(const FilterOperations& filters); |
| 559 void OnOpacityAnimated(float opacity); | 559 void OnOpacityAnimated(float opacity); |
| 560 void OnTransformAnimated(const gfx::Transform& transform); | 560 void OnTransformAnimated(const gfx::Transform& transform); |
| 561 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 561 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 562 void OnTransformIsCurrentlyAnimatingChanged(bool is_animating); | 562 |
| 563 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); | 563 void OnIsAnimatingChanged(const PropertyAnimationState& mask, |
| 564 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); | 564 const PropertyAnimationState& state); |
| 565 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); | |
| 566 void OnFilterIsCurrentlyAnimatingChanged(bool is_currently_animating); | |
| 567 void OnFilterIsPotentiallyAnimatingChanged(bool has_potential_animation); | |
| 568 | 565 |
| 569 bool FilterIsAnimating() const; | 566 bool FilterIsAnimating() const; |
| 570 bool TransformIsAnimating() const; | 567 bool TransformIsAnimating() const; |
| 571 bool ScrollOffsetAnimationWasInterrupted() const; | 568 bool ScrollOffsetAnimationWasInterrupted() const; |
| 572 bool HasOnlyTranslationTransforms() const; | 569 bool HasOnlyTranslationTransforms() const; |
| 573 | 570 |
| 574 void AddScrollChild(Layer* child); | 571 void AddScrollChild(Layer* child); |
| 575 void RemoveScrollChild(Layer* child); | 572 void RemoveScrollChild(Layer* child); |
| 576 | 573 |
| 577 void AddClipChild(Layer* child); | 574 void AddClipChild(Layer* child); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 // These all act like draw properties, so don't need push properties. | 718 // These all act like draw properties, so don't need push properties. |
| 722 gfx::Rect visible_layer_rect_; | 719 gfx::Rect visible_layer_rect_; |
| 723 size_t num_unclipped_descendants_; | 720 size_t num_unclipped_descendants_; |
| 724 | 721 |
| 725 DISALLOW_COPY_AND_ASSIGN(Layer); | 722 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 726 }; | 723 }; |
| 727 | 724 |
| 728 } // namespace cc | 725 } // namespace cc |
| 729 | 726 |
| 730 #endif // CC_LAYERS_LAYER_H_ | 727 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |