| 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 friend class LayerTreeHostCommon; | 465 friend class LayerTreeHostCommon; |
| 466 friend class LayerTreeHost; | 466 friend class LayerTreeHost; |
| 467 | 467 |
| 468 // Interactions with attached animations. | 468 // Interactions with attached animations. |
| 469 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 469 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 470 void OnFilterAnimated(const FilterOperations& filters); | 470 void OnFilterAnimated(const FilterOperations& filters); |
| 471 void OnOpacityAnimated(float opacity); | 471 void OnOpacityAnimated(float opacity); |
| 472 void OnTransformAnimated(const gfx::Transform& transform); | 472 void OnTransformAnimated(const gfx::Transform& transform); |
| 473 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); | 473 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); |
| 474 | 474 |
| 475 bool TransformIsAnimating() const; | |
| 476 bool ScrollOffsetAnimationWasInterrupted() const; | 475 bool ScrollOffsetAnimationWasInterrupted() const; |
| 477 | 476 |
| 478 void AddScrollChild(Layer* child); | 477 void AddScrollChild(Layer* child); |
| 479 void RemoveScrollChild(Layer* child); | 478 void RemoveScrollChild(Layer* child); |
| 480 | 479 |
| 481 void AddClipChild(Layer* child); | 480 void AddClipChild(Layer* child); |
| 482 void RemoveClipChild(Layer* child); | 481 void RemoveClipChild(Layer* child); |
| 483 | 482 |
| 484 void SetParent(Layer* layer); | 483 void SetParent(Layer* layer); |
| 485 bool DescendantIsFixedToContainerLayer() const; | 484 bool DescendantIsFixedToContainerLayer() const; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // These all act like draw properties, so don't need push properties. | 626 // These all act like draw properties, so don't need push properties. |
| 628 gfx::Rect visible_layer_rect_; | 627 gfx::Rect visible_layer_rect_; |
| 629 size_t num_unclipped_descendants_; | 628 size_t num_unclipped_descendants_; |
| 630 | 629 |
| 631 DISALLOW_COPY_AND_ASSIGN(Layer); | 630 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 632 }; | 631 }; |
| 633 | 632 |
| 634 } // namespace cc | 633 } // namespace cc |
| 635 | 634 |
| 636 #endif // CC_LAYERS_LAYER_H_ | 635 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |