| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_SCROLL_NODE_H_ | 5 #ifndef CC_TREES_SCROLL_NODE_H_ |
| 6 #define CC_TREES_SCROLL_NODE_H_ | 6 #define CC_TREES_SCROLL_NODE_H_ |
| 7 | 7 |
| 8 #include "cc/base/filter_operations.h" | 8 #include "cc/base/filter_operations.h" |
| 9 #include "cc/base/region.h" | 9 #include "cc/base/region.h" |
| 10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
| 11 #include "cc/input/scroll_boundary_behavior.h" |
| 11 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 namespace trace_event { | 15 namespace trace_event { |
| 15 class TracedValue; | 16 class TracedValue; |
| 16 } // namespace trace_event | 17 } // namespace trace_event |
| 17 } // namespace base | 18 } // namespace base |
| 18 | 19 |
| 19 namespace cc { | 20 namespace cc { |
| 20 | 21 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // This offset is used when |scrollable| is false and there isn't a transform | 56 // This offset is used when |scrollable| is false and there isn't a transform |
| 56 // node already present that covers this offset. | 57 // node already present that covers this offset. |
| 57 gfx::Vector2dF offset_to_transform_parent; | 58 gfx::Vector2dF offset_to_transform_parent; |
| 58 | 59 |
| 59 bool should_flatten; | 60 bool should_flatten; |
| 60 bool user_scrollable_horizontal; | 61 bool user_scrollable_horizontal; |
| 61 bool user_scrollable_vertical; | 62 bool user_scrollable_vertical; |
| 62 ElementId element_id; | 63 ElementId element_id; |
| 63 int transform_id; | 64 int transform_id; |
| 64 | 65 |
| 66 ScrollBoundaryBehavior scroll_boundary_behavior; |
| 67 |
| 65 bool operator==(const ScrollNode& other) const; | 68 bool operator==(const ScrollNode& other) const; |
| 66 void AsValueInto(base::trace_event::TracedValue* value) const; | 69 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 67 }; | 70 }; |
| 68 | 71 |
| 69 } // namespace cc | 72 } // namespace cc |
| 70 | 73 |
| 71 #endif // CC_TREES_SCROLL_NODE_H_ | 74 #endif // CC_TREES_SCROLL_NODE_H_ |
| OLD | NEW |