Index: cc/layers/layer_impl.h |
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h |
index c32c208ff13c6c885098244610ff9c81026912a0..c4d903684506a5890c18f636abdb6fff1b65ae0a 100644 |
--- a/cc/layers/layer_impl.h |
+++ b/cc/layers/layer_impl.h |
@@ -23,6 +23,7 @@ |
#include "cc/cc_export.h" |
#include "cc/debug/layer_tree_debug_state.h" |
#include "cc/input/input_handler.h" |
+#include "cc/input/scroll_boundary_behavior.h" |
#include "cc/layers/draw_properties.h" |
#include "cc/layers/layer_collections.h" |
#include "cc/layers/layer_impl_test_properties.h" |
@@ -295,6 +296,11 @@ class CC_EXPORT LayerImpl { |
gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset) const; |
gfx::Vector2dF ClampScrollToMaxScrollOffset(); |
+ void SetScrollBoundaryBehavior(const ScrollBoundaryBehavior&); |
+ ScrollBoundaryBehavior scroll_boundary_behavior() { |
+ return scroll_boundary_behavior_; |
+ } |
+ |
// Returns the delta of the scroll that was outside of the bounds of the |
// initial scroll |
gfx::Vector2dF ScrollBy(const gfx::Vector2dF& scroll); |
@@ -565,6 +571,7 @@ class CC_EXPORT LayerImpl { |
bool needs_show_scrollbars_ : 1; |
bool raster_even_if_not_in_rsll_ : 1; |
+ ScrollBoundaryBehavior scroll_boundary_behavior_; |
DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
}; |