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

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

Issue 1698813002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use custom hash in unordered_set. 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
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 AnimationTargetProperty 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 AnimationTargetProperty 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 AnimationTargetProperty 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 bool AnimationsPreserveAxisAlignment() const; 547 bool AnimationsPreserveAxisAlignment() const;
548 void SetTransformAndInvertibility(const gfx::Transform& transform, 548 void SetTransformAndInvertibility(const gfx::Transform& transform,
549 bool transform_is_invertible); 549 bool transform_is_invertible);
550 bool transform_is_invertible() const { return transform_is_invertible_; } 550 bool transform_is_invertible() const { return transform_is_invertible_; }
551 551
552 bool MaximumTargetScale(float* max_scale) const; 552 bool MaximumTargetScale(float* max_scale) const;
553 bool AnimationStartScale(float* start_scale) const; 553 bool AnimationStartScale(float* start_scale) const;
554 554
555 // This includes all animations, even those that are finished but haven't yet 555 // This includes all animations, even those that are finished but haven't yet
556 // been deleted. 556 // been deleted.
557 bool HasAnyAnimationTargetingProperty( 557 bool HasAnyAnimationTargetingProperty(AnimationTargetProperty property) const;
558 Animation::TargetProperty property) const;
559 558
560 bool HasFilterAnimationThatInflatesBounds() const; 559 bool HasFilterAnimationThatInflatesBounds() const;
561 bool HasTransformAnimationThatInflatesBounds() const; 560 bool HasTransformAnimationThatInflatesBounds() const;
562 bool HasAnimationThatInflatesBounds() const; 561 bool HasAnimationThatInflatesBounds() const;
563 562
564 bool FilterAnimationBoundsForBox(const gfx::BoxF& box, 563 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
565 gfx::BoxF* bounds) const; 564 gfx::BoxF* bounds) const;
566 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 565 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
567 gfx::BoxF* bounds) const; 566 gfx::BoxF* bounds) const;
568 567
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 // If true, the layer or one of its descendants has a touch handler. 886 // If true, the layer or one of its descendants has a touch handler.
888 bool layer_or_descendant_has_touch_handler_; 887 bool layer_or_descendant_has_touch_handler_;
889 bool sorted_for_recursion_; 888 bool sorted_for_recursion_;
890 889
891 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 890 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
892 }; 891 };
893 892
894 } // namespace cc 893 } // namespace cc
895 894
896 #endif // CC_LAYERS_LAYER_IMPL_H_ 895 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698