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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 bool HasOnlyTranslationTransforms() const; | 210 bool HasOnlyTranslationTransforms() const; |
211 bool AnimationsPreserveAxisAlignment() const; | 211 bool AnimationsPreserveAxisAlignment() const; |
212 bool transform_is_invertible() const { return transform_is_invertible_; } | 212 bool transform_is_invertible() const { return transform_is_invertible_; } |
213 | 213 |
214 bool MaximumTargetScale(float* max_scale) const; | 214 bool MaximumTargetScale(float* max_scale) const; |
215 bool AnimationStartScale(float* start_scale) const; | 215 bool AnimationStartScale(float* start_scale) const; |
216 | 216 |
217 void SetTransformOrigin(const gfx::Point3F&); | 217 void SetTransformOrigin(const gfx::Point3F&); |
218 gfx::Point3F transform_origin() const { return transform_origin_; } | 218 gfx::Point3F transform_origin() const { return transform_origin_; } |
219 | 219 |
220 bool HasAnyAnimationTargetingProperty( | 220 bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const; |
221 Animation::TargetProperty property) const; | |
222 | 221 |
223 bool ScrollOffsetAnimationWasInterrupted() const; | 222 bool ScrollOffsetAnimationWasInterrupted() const; |
224 | 223 |
225 void SetScrollParent(Layer* parent); | 224 void SetScrollParent(Layer* parent); |
226 | 225 |
227 Layer* scroll_parent() { return scroll_parent_; } | 226 Layer* scroll_parent() { return scroll_parent_; } |
228 const Layer* scroll_parent() const { return scroll_parent_; } | 227 const Layer* scroll_parent() const { return scroll_parent_; } |
229 | 228 |
230 void AddScrollChild(Layer* child); | 229 void AddScrollChild(Layer* child); |
231 void RemoveScrollChild(Layer* child); | 230 void RemoveScrollChild(Layer* child); |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 | 787 |
789 std::vector<FrameTimingRequest> frame_timing_requests_; | 788 std::vector<FrameTimingRequest> frame_timing_requests_; |
790 bool frame_timing_requests_dirty_; | 789 bool frame_timing_requests_dirty_; |
791 | 790 |
792 DISALLOW_COPY_AND_ASSIGN(Layer); | 791 DISALLOW_COPY_AND_ASSIGN(Layer); |
793 }; | 792 }; |
794 | 793 |
795 } // namespace cc | 794 } // namespace cc |
796 | 795 |
797 #endif // CC_LAYERS_LAYER_H_ | 796 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |