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

Unified Diff: cc/layers/layer.h

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: update the tests Created 3 years, 6 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.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 1dc0735e0d276e08c5b9ae1bdcde6d91ff657c47..2c67f9aa362bffb0a1383a13e2bd10179e783841 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -22,6 +22,7 @@
#include "cc/benchmarks/micro_benchmark.h"
#include "cc/cc_export.h"
#include "cc/input/input_handler.h"
+#include "cc/input/scroll_boundary_behavior.h"
#include "cc/layers/layer_collections.h"
#include "cc/layers/layer_position_constraint.h"
#include "cc/layers/touch_action_region.h"
@@ -114,6 +115,11 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
void SetBounds(const gfx::Size& bounds);
gfx::Size bounds() const { return inputs_.bounds; }
+ void SetScrollBoundaryBehavior(const ScrollBoundaryBehavior& behavior);
+ ScrollBoundaryBehavior scroll_boundary_behavior() const {
+ return inputs_.scroll_boundary_behavior;
+ }
+
void SetMasksToBounds(bool masks_to_bounds);
bool masks_to_bounds() const { return inputs_.masks_to_bounds; }
@@ -605,6 +611,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
LayerClient* client;
base::Callback<void(const gfx::ScrollOffset&)> did_scroll_callback;
std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests;
+
+ ScrollBoundaryBehavior scroll_boundary_behavior;
};
Layer* parent_;

Powered by Google App Engine
This is Rietveld 408576698