Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4469)

Unified Diff: cc/LayerChromium.h

Issue 10907075: Roll cc snapshot up to 127605 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | cc/LayerChromium.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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*);
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | cc/LayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698