Index: cc/LayerChromium.h |
diff --git a/cc/LayerChromium.h b/cc/LayerChromium.h |
index 273bf8e956e4eb9ed6b7abca4d072e3d33df26a6..aad1fe224e898afcc0fba46e34f49f4b8475f887 100644 |
--- a/cc/LayerChromium.h |
+++ b/cc/LayerChromium.h |
@@ -28,6 +28,7 @@ |
namespace WebKit { |
class WebAnimationDelegate; |
+class WebLayerScrollClient; |
} |
namespace WebCore { |
@@ -42,15 +43,6 @@ class ScrollbarLayerChromium; |
struct CCAnimationEvent; |
struct CCRenderingStats; |
-// Delegate for handling scroll input for a LayerChromium. |
-class LayerChromiumScrollDelegate { |
-public: |
- virtual void didScroll(const IntSize&) = 0; |
- |
-protected: |
- virtual ~LayerChromiumScrollDelegate() { } |
-}; |
- |
// Base class for composited layers. Special layer types are derived from |
// this class. |
class LayerChromium : public RefCounted<LayerChromium>, public CCLayerAnimationControllerClient { |
@@ -149,8 +141,7 @@ public: |
const Region& nonFastScrollableRegion() { return m_nonFastScrollableRegion; } |
void setNonFastScrollableRegion(const Region&); |
void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged = true; } |
- void setLayerScrollDelegate(LayerChromiumScrollDelegate* layerScrollDelegate) { m_layerScrollDelegate = layerScrollDelegate; } |
- void scrollBy(const IntSize&); |
+ void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) { m_layerScrollClient = layerScrollClient; } |
void setDrawCheckerboardForMissingTiles(bool); |
bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForMissingTiles; } |
@@ -370,7 +361,7 @@ private: |
float m_contentsScale; |
WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
- LayerChromiumScrollDelegate* m_layerScrollDelegate; |
+ WebKit::WebLayerScrollClient* m_layerScrollClient; |
}; |
void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChromium> >::iterator, void*); |