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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 friend class LayerTreeHost; | 494 friend class LayerTreeHost; |
495 friend class LayerInternalsForTest; | 495 friend class LayerInternalsForTest; |
496 | 496 |
497 // Interactions with attached animations. | 497 // Interactions with attached animations. |
498 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 498 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
499 void OnFilterAnimated(const FilterOperations& filters); | 499 void OnFilterAnimated(const FilterOperations& filters); |
500 void OnOpacityAnimated(float opacity); | 500 void OnOpacityAnimated(float opacity); |
501 void OnTransformAnimated(const gfx::Transform& transform); | 501 void OnTransformAnimated(const gfx::Transform& transform); |
502 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 502 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
503 | 503 |
504 void OnIsAnimatingChanged(const PropertyAnimationState& mask, | |
505 const PropertyAnimationState& state); | |
506 | |
507 bool FilterIsAnimating() const; | 504 bool FilterIsAnimating() const; |
508 bool TransformIsAnimating() const; | 505 bool TransformIsAnimating() const; |
509 bool ScrollOffsetAnimationWasInterrupted() const; | 506 bool ScrollOffsetAnimationWasInterrupted() const; |
510 bool HasOnlyTranslationTransforms() const; | 507 bool HasOnlyTranslationTransforms() const; |
511 | 508 |
512 void AddScrollChild(Layer* child); | 509 void AddScrollChild(Layer* child); |
513 void RemoveScrollChild(Layer* child); | 510 void RemoveScrollChild(Layer* child); |
514 | 511 |
515 void AddClipChild(Layer* child); | 512 void AddClipChild(Layer* child); |
516 void RemoveClipChild(Layer* child); | 513 void RemoveClipChild(Layer* child); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 // These all act like draw properties, so don't need push properties. | 663 // These all act like draw properties, so don't need push properties. |
667 gfx::Rect visible_layer_rect_; | 664 gfx::Rect visible_layer_rect_; |
668 size_t num_unclipped_descendants_; | 665 size_t num_unclipped_descendants_; |
669 | 666 |
670 DISALLOW_COPY_AND_ASSIGN(Layer); | 667 DISALLOW_COPY_AND_ASSIGN(Layer); |
671 }; | 668 }; |
672 | 669 |
673 } // namespace cc | 670 } // namespace cc |
674 | 671 |
675 #endif // CC_LAYERS_LAYER_H_ | 672 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |