summaryrefslogtreecommitdiffstats
path: root/cc/scrollbar_layer_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/scrollbar_layer_impl.h')
-rw-r--r--cc/scrollbar_layer_impl.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/cc/scrollbar_layer_impl.h b/cc/scrollbar_layer_impl.h
index 116b24a..24bef0a 100644
--- a/cc/scrollbar_layer_impl.h
+++ b/cc/scrollbar_layer_impl.h
@@ -28,14 +28,12 @@ public:
void setForeTrackResourceId(ResourceProvider::ResourceId id) { m_foreTrackResourceId = id; }
void setThumbResourceId(ResourceProvider::ResourceId id) { m_thumbResourceId = id; }
- virtual float currentPos() const OVERRIDE;
- void setCurrentPos(float currentPos) { m_currentPos = currentPos; }
+ void setAnimationController(ScrollbarAnimationController* controller);
+ // ScrollbarLayerImplBase implementation.
+ virtual float currentPos() const OVERRIDE;
virtual int totalSize() const OVERRIDE;
- void setTotalSize(int totalSize) { m_totalSize = totalSize; }
-
virtual int maximum() const OVERRIDE;
- void setMaximum(int maximum) { m_maximum = maximum; }
virtual WebKit::WebScrollbar::Orientation orientation() const OVERRIDE;
@@ -95,9 +93,9 @@ private:
WebKit::WebScrollbar::ScrollbarPart m_pressedPart;
WebKit::WebScrollbar::ScrollbarPart m_hoveredPart;
- float m_currentPos;
- int m_totalSize;
- int m_maximum;
+ // This animation controller is owned by the scrollable LayerImpl, which
+ // is tied to the lifetime of the ScrollbarLayerImpls.
+ ScrollbarAnimationController* m_animationController;
bool m_isScrollableAreaActive;
bool m_isScrollViewScrollbar;