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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FilterIsAnimating() const; | 475 bool FilterIsAnimating() const; |
476 bool TransformIsAnimating() const; | 476 bool TransformIsAnimating() const; |
477 bool ScrollOffsetAnimationWasInterrupted() const; | 477 bool ScrollOffsetAnimationWasInterrupted() const; |
478 bool HasOnlyTranslationTransforms() const; | |
479 | 478 |
480 void AddScrollChild(Layer* child); | 479 void AddScrollChild(Layer* child); |
481 void RemoveScrollChild(Layer* child); | 480 void RemoveScrollChild(Layer* child); |
482 | 481 |
483 void AddClipChild(Layer* child); | 482 void AddClipChild(Layer* child); |
484 void RemoveClipChild(Layer* child); | 483 void RemoveClipChild(Layer* child); |
485 | 484 |
486 void SetParent(Layer* layer); | 485 void SetParent(Layer* layer); |
487 bool DescendantIsFixedToContainerLayer() const; | 486 bool DescendantIsFixedToContainerLayer() const; |
488 | 487 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 // These all act like draw properties, so don't need push properties. | 628 // These all act like draw properties, so don't need push properties. |
630 gfx::Rect visible_layer_rect_; | 629 gfx::Rect visible_layer_rect_; |
631 size_t num_unclipped_descendants_; | 630 size_t num_unclipped_descendants_; |
632 | 631 |
633 DISALLOW_COPY_AND_ASSIGN(Layer); | 632 DISALLOW_COPY_AND_ASSIGN(Layer); |
634 }; | 633 }; |
635 | 634 |
636 } // namespace cc | 635 } // namespace cc |
637 | 636 |
638 #endif // CC_LAYERS_LAYER_H_ | 637 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |