OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_TREES_SCROLL_NODE_H_ |
| 6 #define CC_TREES_SCROLL_NODE_H_ |
| 7 |
| 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/filter_operations.h" |
| 10 #include "ui/gfx/geometry/size.h" |
| 11 |
| 12 namespace base { |
| 13 namespace trace_event { |
| 14 class TracedValue; |
| 15 } // namespace trace_event |
| 16 } // namespace base |
| 17 |
| 18 namespace cc { |
| 19 |
| 20 namespace proto { |
| 21 class TreeNode; |
| 22 } // namespace proto |
| 23 |
| 24 struct CC_EXPORT ScrollNode { |
| 25 ScrollNode(); |
| 26 ScrollNode(const ScrollNode& other); |
| 27 |
| 28 int id; |
| 29 int parent_id; |
| 30 int owner_id; |
| 31 |
| 32 bool scrollable; |
| 33 uint32_t main_thread_scrolling_reasons; |
| 34 bool contains_non_fast_scrollable_region; |
| 35 gfx::Size scroll_clip_layer_bounds; |
| 36 gfx::Size bounds; |
| 37 bool max_scroll_offset_affected_by_page_scale; |
| 38 bool is_inner_viewport_scroll_layer; |
| 39 bool is_outer_viewport_scroll_layer; |
| 40 gfx::Vector2dF offset_to_transform_parent; |
| 41 bool should_flatten; |
| 42 bool user_scrollable_horizontal; |
| 43 bool user_scrollable_vertical; |
| 44 ElementId element_id; |
| 45 int transform_id; |
| 46 // Number of drawn layers pointing to this node or any of its descendants. |
| 47 int num_drawn_descendants; |
| 48 |
| 49 bool operator==(const ScrollNode& other) const; |
| 50 |
| 51 void ToProtobuf(proto::TreeNode* proto) const; |
| 52 void FromProtobuf(const proto::TreeNode& proto); |
| 53 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 54 }; |
| 55 |
| 56 } // namespace cc |
| 57 |
| 58 #endif // CC_TREES_SCROLL_NODE_H_ |
OLD | NEW |