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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 gfx::Vector2dF FixedContainerSizeDelta() const { | 185 gfx::Vector2dF FixedContainerSizeDelta() const { |
186 return gfx::Vector2dF(); | 186 return gfx::Vector2dF(); |
187 } | 187 } |
188 | 188 |
189 void SetPositionConstraint(const LayerPositionConstraint& constraint); | 189 void SetPositionConstraint(const LayerPositionConstraint& constraint); |
190 const LayerPositionConstraint& position_constraint() const { | 190 const LayerPositionConstraint& position_constraint() const { |
191 return inputs_.position_constraint; | 191 return inputs_.position_constraint; |
192 } | 192 } |
193 | 193 |
| 194 void SetStickyPositionConstraint( |
| 195 const LayerStickyPositionConstraint& constraint); |
| 196 const LayerStickyPositionConstraint& sticky_position_constraint() const { |
| 197 return inputs_.sticky_position_constraint; |
| 198 } |
| 199 |
194 void SetTransform(const gfx::Transform& transform); | 200 void SetTransform(const gfx::Transform& transform); |
195 const gfx::Transform& transform() const { return inputs_.transform; } | 201 const gfx::Transform& transform() const { return inputs_.transform; } |
196 | 202 |
197 void SetTransformOrigin(const gfx::Point3F&); | 203 void SetTransformOrigin(const gfx::Point3F&); |
198 gfx::Point3F transform_origin() const { return inputs_.transform_origin; } | 204 gfx::Point3F transform_origin() const { return inputs_.transform_origin; } |
199 | 205 |
200 void SetScrollParent(Layer* parent); | 206 void SetScrollParent(Layer* parent); |
201 | 207 |
202 Layer* scroll_parent() { return inputs_.scroll_parent; } | 208 Layer* scroll_parent() { return inputs_.scroll_parent; } |
203 const Layer* scroll_parent() const { return inputs_.scroll_parent; } | 209 const Layer* scroll_parent() const { return inputs_.scroll_parent; } |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 bool user_scrollable_vertical : 1; | 674 bool user_scrollable_vertical : 1; |
669 | 675 |
670 uint32_t main_thread_scrolling_reasons; | 676 uint32_t main_thread_scrolling_reasons; |
671 Region non_fast_scrollable_region; | 677 Region non_fast_scrollable_region; |
672 | 678 |
673 Region touch_event_handler_region; | 679 Region touch_event_handler_region; |
674 | 680 |
675 bool is_container_for_fixed_position_layers : 1; | 681 bool is_container_for_fixed_position_layers : 1; |
676 LayerPositionConstraint position_constraint; | 682 LayerPositionConstraint position_constraint; |
677 | 683 |
| 684 LayerStickyPositionConstraint sticky_position_constraint; |
| 685 |
678 ElementId element_id; | 686 ElementId element_id; |
679 | 687 |
680 uint32_t mutable_properties; | 688 uint32_t mutable_properties; |
681 | 689 |
682 Layer* scroll_parent; | 690 Layer* scroll_parent; |
683 Layer* clip_parent; | 691 Layer* clip_parent; |
684 | 692 |
685 bool has_will_change_transform_hint : 1; | 693 bool has_will_change_transform_hint : 1; |
686 | 694 |
687 bool hide_layer_and_subtree : 1; | 695 bool hide_layer_and_subtree : 1; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 // These all act like draw properties, so don't need push properties. | 738 // These all act like draw properties, so don't need push properties. |
731 gfx::Rect visible_layer_rect_; | 739 gfx::Rect visible_layer_rect_; |
732 size_t num_unclipped_descendants_; | 740 size_t num_unclipped_descendants_; |
733 | 741 |
734 DISALLOW_COPY_AND_ASSIGN(Layer); | 742 DISALLOW_COPY_AND_ASSIGN(Layer); |
735 }; | 743 }; |
736 | 744 |
737 } // namespace cc | 745 } // namespace cc |
738 | 746 |
739 #endif // CC_LAYERS_LAYER_H_ | 747 #endif // CC_LAYERS_LAYER_H_ |
OLD | NEW |