Chromium Code Reviews| 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_; |