| 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 28 matching lines...) Expand all Loading... |
| 49 bool user_scrollable_horizontal : 1; | 50 bool user_scrollable_horizontal : 1; |
| 50 bool user_scrollable_vertical : 1; | 51 bool user_scrollable_vertical : 1; |
| 51 | 52 |
| 52 // This offset is used when |scrollable| is false and there isn't a transform | 53 // This offset is used when |scrollable| is false and there isn't a transform |
| 53 // node already present that covers this offset. | 54 // node already present that covers this offset. |
| 54 gfx::Vector2dF offset_to_transform_parent; | 55 gfx::Vector2dF offset_to_transform_parent; |
| 55 | 56 |
| 56 ElementId element_id; | 57 ElementId element_id; |
| 57 int transform_id; | 58 int transform_id; |
| 58 | 59 |
| 60 ScrollBoundaryBehavior scroll_boundary_behavior; |
| 61 |
| 59 bool operator==(const ScrollNode& other) const; | 62 bool operator==(const ScrollNode& other) const; |
| 60 void AsValueInto(base::trace_event::TracedValue* value) const; | 63 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 } // namespace cc | 66 } // namespace cc |
| 64 | 67 |
| 65 #endif // CC_TREES_SCROLL_NODE_H_ | 68 #endif // CC_TREES_SCROLL_NODE_H_ |
| OLD | NEW |