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

Unified Diff: cc/layers/painted_scrollbar_layer.h

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Backup 2013.10.29 Created 7 years, 2 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
Index: cc/layers/painted_scrollbar_layer.h
diff --git a/cc/layers/painted_scrollbar_layer.h b/cc/layers/painted_scrollbar_layer.h
index 606ad69b9056f8a88e223dbe8effc19955053d53..f1264c981d09178c2cc10a78ad157c1a9f6f283a 100644
--- a/cc/layers/painted_scrollbar_layer.h
+++ b/cc/layers/painted_scrollbar_layer.h
@@ -24,14 +24,15 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
static scoped_refptr<PaintedScrollbarLayer> Create(
scoped_ptr<Scrollbar> scrollbar,
- int scroll_layer_id);
+ Layer* scroll_layer);
virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE;
// ScrollbarLayerInterface
virtual int ScrollLayerId() const OVERRIDE;
- virtual void SetScrollLayerId(int id) OVERRIDE;
+ virtual void SetScrollLayer(scoped_refptr<Layer> layer) OVERRIDE;
+ virtual void SetClipLayer(scoped_refptr<Layer> layer) OVERRIDE;
virtual ScrollbarOrientation orientation() const OVERRIDE;
@@ -49,7 +50,7 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
gfx::Size* content_bounds) OVERRIDE;
protected:
- PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, int scroll_layer_id);
+ PaintedScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, Layer* scroll_layer);
virtual ~PaintedScrollbarLayer();
// For unit tests
@@ -79,7 +80,8 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
ScrollbarPart part);
scoped_ptr<Scrollbar> scrollbar_;
- int scroll_layer_id_;
+ scoped_refptr<Layer> scroll_layer_;
+ scoped_refptr<Layer> clip_layer_;
// Snapshot of properties taken in UpdateThumbAndTrackGeometry and used in
// PushPropertiesTo.

Powered by Google App Engine
This is Rietveld 408576698