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 { return is_affected_by_page_scale_; } | 360 bool IsAffectedByPageScale() const; |
361 void SetIsAffectedByPageScale(bool is_affected) { | |
362 is_affected_by_page_scale_ = is_affected; | |
363 } | |
364 | 361 |
365 gfx::Vector2dF FixedContainerSizeDelta() const; | 362 gfx::Vector2dF FixedContainerSizeDelta() const; |
366 | 363 |
367 void SetPositionConstraint(const LayerPositionConstraint& constraint) { | 364 void SetPositionConstraint(const LayerPositionConstraint& constraint) { |
368 position_constraint_ = constraint; | 365 position_constraint_ = constraint; |
369 } | 366 } |
370 const LayerPositionConstraint& position_constraint() const { | 367 const LayerPositionConstraint& position_constraint() const { |
371 return position_constraint_; | 368 return position_constraint_; |
372 } | 369 } |
373 | 370 |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 bool layer_or_descendant_has_input_handler_; | 901 bool layer_or_descendant_has_input_handler_; |
905 bool sorted_for_recursion_; | 902 bool sorted_for_recursion_; |
906 bool is_hidden_from_property_trees_; | 903 bool is_hidden_from_property_trees_; |
907 | 904 |
908 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 905 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
909 }; | 906 }; |
910 | 907 |
911 } // namespace cc | 908 } // namespace cc |
912 | 909 |
913 #endif // CC_LAYERS_LAYER_IMPL_H_ | 910 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |