Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: cc/layers/layer_impl.h

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void OnFilterAnimated(const FilterOperations& filters) override; 112 void OnFilterAnimated(const FilterOperations& filters) override;
113 void OnOpacityAnimated(float opacity) override; 113 void OnOpacityAnimated(float opacity) override;
114 void OnTransformAnimated(const gfx::Transform& transform) override; 114 void OnTransformAnimated(const gfx::Transform& transform) override;
115 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override; 115 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset) override;
116 void OnAnimationWaitingForDeletion() override; 116 void OnAnimationWaitingForDeletion() override;
117 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating) override; 117 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating) override;
118 bool IsActive() const override; 118 bool IsActive() const override;
119 119
120 // AnimationDelegate implementation. 120 // AnimationDelegate implementation.
121 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 121 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
122 Animation::TargetProperty target_property, 122 TargetProperty::Type target_property,
123 int group) override{}; 123 int group) override{};
124 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 124 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
125 Animation::TargetProperty target_property, 125 TargetProperty::Type target_property,
126 int group) override; 126 int group) override;
127 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 127 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
128 Animation::TargetProperty target_property, 128 TargetProperty::Type target_property,
129 int group) override{}; 129 int group) override{};
130 130
131 // Tree structure. 131 // Tree structure.
132 LayerImpl* parent() { return parent_; } 132 LayerImpl* parent() { return parent_; }
133 const LayerImpl* parent() const { return parent_; } 133 const LayerImpl* parent() const { return parent_; }
134 const OwnedLayerImplList& children() const { return children_; } 134 const OwnedLayerImplList& children() const { return children_; }
135 OwnedLayerImplList& children() { return children_; } 135 OwnedLayerImplList& children() { return children_; }
136 LayerImpl* child_at(size_t index) const { return children_[index].get(); } 136 LayerImpl* child_at(size_t index) const { return children_[index].get(); }
137 void AddChild(scoped_ptr<LayerImpl> child); 137 void AddChild(scoped_ptr<LayerImpl> child);
138 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); 138 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child);
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 bool AnimationsPreserveAxisAlignment() const; 543 bool AnimationsPreserveAxisAlignment() const;
544 void SetTransformAndInvertibility(const gfx::Transform& transform, 544 void SetTransformAndInvertibility(const gfx::Transform& transform,
545 bool transform_is_invertible); 545 bool transform_is_invertible);
546 bool transform_is_invertible() const { return transform_is_invertible_; } 546 bool transform_is_invertible() const { return transform_is_invertible_; }
547 547
548 bool MaximumTargetScale(float* max_scale) const; 548 bool MaximumTargetScale(float* max_scale) const;
549 bool AnimationStartScale(float* start_scale) const; 549 bool AnimationStartScale(float* start_scale) const;
550 550
551 // This includes all animations, even those that are finished but haven't yet 551 // This includes all animations, even those that are finished but haven't yet
552 // been deleted. 552 // been deleted.
553 bool HasAnyAnimationTargetingProperty( 553 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const;
554 Animation::TargetProperty property) const;
555 554
556 bool HasFilterAnimationThatInflatesBounds() const; 555 bool HasFilterAnimationThatInflatesBounds() const;
557 bool HasTransformAnimationThatInflatesBounds() const; 556 bool HasTransformAnimationThatInflatesBounds() const;
558 bool HasAnimationThatInflatesBounds() const; 557 bool HasAnimationThatInflatesBounds() const;
559 558
560 bool FilterAnimationBoundsForBox(const gfx::BoxF& box, 559 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
561 gfx::BoxF* bounds) const; 560 gfx::BoxF* bounds) const;
562 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 561 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
563 gfx::BoxF* bounds) const; 562 gfx::BoxF* bounds) const;
564 563
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 // If true, the layer or one of its descendants has a touch handler. 875 // If true, the layer or one of its descendants has a touch handler.
877 bool layer_or_descendant_has_touch_handler_; 876 bool layer_or_descendant_has_touch_handler_;
878 bool sorted_for_recursion_; 877 bool sorted_for_recursion_;
879 878
880 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 879 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
881 }; 880 };
882 881
883 } // namespace cc 882 } // namespace cc
884 883
885 #endif // CC_LAYERS_LAYER_IMPL_H_ 884 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698