| 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/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/filter_operations.h" | 9 #include "cc/output/filter_operations.h" |
| 10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 bool contains_non_fast_scrollable_region; | 40 bool contains_non_fast_scrollable_region; |
| 41 | 41 |
| 42 // Size of the clipped area, not including non-overlay scrollbars. Overlay | 42 // Size of the clipped area, not including non-overlay scrollbars. Overlay |
| 43 // scrollbars do not affect the clipped area. | 43 // scrollbars do not affect the clipped area. |
| 44 gfx::Size scroll_clip_layer_bounds; | 44 gfx::Size scroll_clip_layer_bounds; |
| 45 | 45 |
| 46 // Bounds of the overflow scrolling area. | 46 // Bounds of the overflow scrolling area. |
| 47 gfx::Size bounds; | 47 gfx::Size bounds; |
| 48 | 48 |
| 49 bool max_scroll_offset_affected_by_page_scale; | 49 bool max_scroll_offset_affected_by_page_scale; |
| 50 bool is_inner_viewport_scroll_layer; | 50 bool scrolls_inner_viewport; |
| 51 bool is_outer_viewport_scroll_layer; | 51 bool scrolls_outer_viewport; |
| 52 | 52 |
| 53 // 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 |
| 54 // node already present that covers this offset. | 54 // node already present that covers this offset. |
| 55 gfx::Vector2dF offset_to_transform_parent; | 55 gfx::Vector2dF offset_to_transform_parent; |
| 56 | 56 |
| 57 bool should_flatten; | 57 bool should_flatten; |
| 58 bool user_scrollable_horizontal; | 58 bool user_scrollable_horizontal; |
| 59 bool user_scrollable_vertical; | 59 bool user_scrollable_vertical; |
| 60 ElementId element_id; | 60 ElementId element_id; |
| 61 int transform_id; | 61 int transform_id; |
| 62 | 62 |
| 63 bool operator==(const ScrollNode& other) const; | 63 bool operator==(const ScrollNode& other) const; |
| 64 void AsValueInto(base::trace_event::TracedValue* value) const; | 64 void AsValueInto(base::trace_event::TracedValue* value) const; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace cc | 67 } // namespace cc |
| 68 | 68 |
| 69 #endif // CC_TREES_SCROLL_NODE_H_ | 69 #endif // CC_TREES_SCROLL_NODE_H_ |
| OLD | NEW |