summaryrefslogtreecommitdiffstats
path: root/chromium/cc/input/layer_scroll_offset_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/input/layer_scroll_offset_delegate.h')
-rw-r--r--chromium/cc/input/layer_scroll_offset_delegate.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/chromium/cc/input/layer_scroll_offset_delegate.h b/chromium/cc/input/layer_scroll_offset_delegate.h
index 54a11c9e2bd..ba11c3839dd 100644
--- a/chromium/cc/input/layer_scroll_offset_delegate.h
+++ b/chromium/cc/input/layer_scroll_offset_delegate.h
@@ -17,14 +17,6 @@ namespace cc {
// The LayerScrollOffsetDelegate is only used on the impl thread.
class LayerScrollOffsetDelegate {
public:
- // This is called by the compositor to notify the delegate what is the upper
- // total scroll offset bound.
- virtual void SetMaxScrollOffset(gfx::Vector2dF max_scroll_offset) = 0;
-
- // This is called by the compositor when the scroll offset of the layer would
- // have otherwise changed.
- virtual void SetTotalScrollOffset(gfx::Vector2dF new_value) = 0;
-
// This is called by the compositor to query the current scroll offset of the
// layer.
// There is no requirement that the return values of this method are
@@ -34,18 +26,25 @@ class LayerScrollOffsetDelegate {
// more than the value passed to the most recent SetMaxScrollOffset call.
virtual gfx::Vector2dF GetTotalScrollOffset() = 0;
+ // This is called by the compositor to notify the delegate of any change to
+ // the following parameters:
+ // |total_scroll_offset| current scroll offset of the root layer,
+ // |max_scroll_offset| total scroll offset upper bound for the root layer,
+ // |scrollable_size| root layer scrollable size,
+ // |page_scale_factor| current page scale,
+ // |min_page_scale_factor| page scale lower limit,
+ // |max_page_scale_factor| page scale upper limit.
+ virtual void UpdateRootLayerState(const gfx::Vector2dF& total_scroll_offset,
+ const gfx::Vector2dF& max_scroll_offset,
+ const gfx::SizeF& scrollable_size,
+ float page_scale_factor,
+ float min_page_scale_factor,
+ float max_page_scale_factor) = 0;
+
// This is called by the compositor to check whether a delegate-managed fling
// is active or not.
virtual bool IsExternalFlingActive() const = 0;
- // This is called by the compositor to notify the delegate what is the current
- // page scale factor is.
- virtual void SetTotalPageScaleFactor(float page_scale_factor) = 0;
-
- // This is called by the compositor to notify the delegate what is the layer's
- // scrollable size is.
- virtual void SetScrollableSize(gfx::SizeF scrollable_size) = 0;
-
protected:
LayerScrollOffsetDelegate() {}
virtual ~LayerScrollOffsetDelegate() {}