Index: cc/layers/layer.h |
diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
index 274e82fc7c8656e600f1c23caff01176caedb241..419bc0006baf9df160a27fc9986d733d8df0e4fa 100644 |
--- a/cc/layers/layer.h |
+++ b/cc/layers/layer.h |
@@ -245,11 +245,11 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
gfx::Vector2d scroll_offset() const { return scroll_offset_; } |
void SetScrollOffsetFromImplSide(gfx::Vector2d scroll_offset); |
- void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset); |
- gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; } |
+ gfx::Vector2d MaxScrollOffset() const; |
+ gfx::Vector2d TotalViewportScrollOffset() const; |
- void SetScrollable(bool scrollable); |
- bool scrollable() const { return scrollable_; } |
+ void SetScrollable(Layer* clip_layer); |
+ bool scrollable() const { return clip_layer_; } |
void SetUserScrollable(bool horizontal, bool vertical); |
bool user_scrollable_horizontal() const { |
@@ -540,8 +540,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
gfx::Size bounds_; |
gfx::Vector2d scroll_offset_; |
- gfx::Vector2d max_scroll_offset_; |
- bool scrollable_; |
+ Layer* clip_layer_; |
bool should_scroll_on_main_thread_; |
bool have_wheel_event_handlers_; |
bool user_scrollable_horizontal_; |