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

Unified Diff: cc/layers/layer_impl.h

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Update WebScrollBoundaryBehavior. 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 f497b7d533bdcbf1c8aa79d7adb2380372a0dc8e..90689572a56d67a0b8dfa4dc4b465b5ce8918484 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(ScrollBoundaryBehavior);
bokan 2017/05/19 19:35:57 pass by const-ref
sunyunjia 2017/05/25 20:07:10 Done.
+ 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);
@@ -577,6 +583,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