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(AnimationTargetProperty 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 | 791 |
793 std::vector<FrameTimingRequest> frame_timing_requests_; | 792 std::vector<FrameTimingRequest> frame_timing_requests_; |
794 bool frame_timing_requests_dirty_; | 793 bool frame_timing_requests_dirty_; |
795 | 794 |
796 DISALLOW_COPY_AND_ASSIGN(Layer); | 795 DISALLOW_COPY_AND_ASSIGN(Layer); |
797 }; | 796 }; |
798 | 797 |
799 } // namespace cc | 798 } // namespace cc |
800 | 799 |
801 #endif // CC_LAYERS_LAYER_H_ | 800 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |