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

Unified Diff: cc/layers/layer.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.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index c88721b0fa6e1e82ad3728900e1d3f93b7cc566b..d07a517175cc6284637343f34624fd6547b90f40 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/paint/paint_record.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(ScrollBoundaryBehavior behavior);
bokan 2017/05/19 19:35:57 pass by const-ref
sunyunjia 2017/05/25 20:07:10 Done.
+ 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; }
@@ -593,6 +599,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