| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TREES_PROPERTY_TREE_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
| 6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <unordered_map> | 11 #include <unordered_map> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "cc/animation/element_id.h" | |
| 15 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
| 16 #include "cc/base/synced_property.h" | 15 #include "cc/base/synced_property.h" |
| 17 #include "ui/gfx/geometry/rect_f.h" | 16 #include "ui/gfx/geometry/rect_f.h" |
| 18 #include "ui/gfx/geometry/scroll_offset.h" | 17 #include "ui/gfx/geometry/scroll_offset.h" |
| 19 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
| 20 | 19 |
| 21 namespace base { | 20 namespace base { |
| 22 namespace trace_event { | 21 namespace trace_event { |
| 23 class TracedValue; | 22 class TracedValue; |
| 24 } | 23 } |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 bool contains_non_fast_scrollable_region; | 317 bool contains_non_fast_scrollable_region; |
| 319 gfx::Size scroll_clip_layer_bounds; | 318 gfx::Size scroll_clip_layer_bounds; |
| 320 gfx::Size bounds; | 319 gfx::Size bounds; |
| 321 bool max_scroll_offset_affected_by_page_scale; | 320 bool max_scroll_offset_affected_by_page_scale; |
| 322 bool is_inner_viewport_scroll_layer; | 321 bool is_inner_viewport_scroll_layer; |
| 323 bool is_outer_viewport_scroll_layer; | 322 bool is_outer_viewport_scroll_layer; |
| 324 gfx::Vector2dF offset_to_transform_parent; | 323 gfx::Vector2dF offset_to_transform_parent; |
| 325 bool should_flatten; | 324 bool should_flatten; |
| 326 bool user_scrollable_horizontal; | 325 bool user_scrollable_horizontal; |
| 327 bool user_scrollable_vertical; | 326 bool user_scrollable_vertical; |
| 328 ElementId element_id; | 327 int element_id; |
| 329 int transform_id; | 328 int transform_id; |
| 330 // Number of drawn layers pointing to this node or any of its descendants. | 329 // Number of drawn layers pointing to this node or any of its descendants. |
| 331 int num_drawn_descendants; | 330 int num_drawn_descendants; |
| 332 | 331 |
| 333 bool operator==(const ScrollNodeData& other) const; | 332 bool operator==(const ScrollNodeData& other) const; |
| 334 | 333 |
| 335 void ToProtobuf(proto::TreeNode* proto) const; | 334 void ToProtobuf(proto::TreeNode* proto) const; |
| 336 void FromProtobuf(const proto::TreeNode& proto); | 335 void FromProtobuf(const proto::TreeNode& proto); |
| 337 void AsValueInto(base::trace_event::TracedValue* value) const; | 336 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 338 }; | 337 }; |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 | 739 |
| 741 private: | 740 private: |
| 742 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 741 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
| 743 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 742 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
| 744 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 743 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
| 745 }; | 744 }; |
| 746 | 745 |
| 747 } // namespace cc | 746 } // namespace cc |
| 748 | 747 |
| 749 #endif // CC_TREES_PROPERTY_TREE_H_ | 748 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |