| OLD | NEW |
| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 gfx::PointF position() const { return position_; } | 350 gfx::PointF position() const { return position_; } |
| 351 | 351 |
| 352 void SetIsContainerForFixedPositionLayers(bool container) { | 352 void SetIsContainerForFixedPositionLayers(bool container) { |
| 353 is_container_for_fixed_position_layers_ = container; | 353 is_container_for_fixed_position_layers_ = container; |
| 354 } | 354 } |
| 355 // This is a non-trivial function in Layer. | 355 // This is a non-trivial function in Layer. |
| 356 bool IsContainerForFixedPositionLayers() const { | 356 bool IsContainerForFixedPositionLayers() const { |
| 357 return is_container_for_fixed_position_layers_; | 357 return is_container_for_fixed_position_layers_; |
| 358 } | 358 } |
| 359 | 359 |
| 360 bool IsAffectedByPageScale() const; | 360 bool IsAffectedByPageScale() const { return is_affected_by_page_scale_; } |
| 361 void SetIsAffectedByPageScale(bool is_affected) { |
| 362 is_affected_by_page_scale_ = is_affected; |
| 363 } |
| 361 | 364 |
| 362 gfx::Vector2dF FixedContainerSizeDelta() const; | 365 gfx::Vector2dF FixedContainerSizeDelta() const; |
| 363 | 366 |
| 364 void SetPositionConstraint(const LayerPositionConstraint& constraint) { | 367 void SetPositionConstraint(const LayerPositionConstraint& constraint) { |
| 365 position_constraint_ = constraint; | 368 position_constraint_ = constraint; |
| 366 } | 369 } |
| 367 const LayerPositionConstraint& position_constraint() const { | 370 const LayerPositionConstraint& position_constraint() const { |
| 368 return position_constraint_; | 371 return position_constraint_; |
| 369 } | 372 } |
| 370 | 373 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 bool layer_or_descendant_has_input_handler_; | 904 bool layer_or_descendant_has_input_handler_; |
| 902 bool sorted_for_recursion_; | 905 bool sorted_for_recursion_; |
| 903 bool is_hidden_from_property_trees_; | 906 bool is_hidden_from_property_trees_; |
| 904 | 907 |
| 905 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 908 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 906 }; | 909 }; |
| 907 | 910 |
| 908 } // namespace cc | 911 } // namespace cc |
| 909 | 912 |
| 910 #endif // CC_LAYERS_LAYER_IMPL_H_ | 913 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |