Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7276)

Unified Diff: cc/layers/layer_impl.h

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Use only gpuBenchmarking. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698