| Index: cc/layers/scrollbar_layer.h
|
| diff --git a/cc/layers/scrollbar_layer.h b/cc/layers/scrollbar_layer.h
|
| index a162a7f00f5314e3785f3e97567c6f99a929fd77..f9f44994a9710e809126ad01b55af96225f91bbe 100644
|
| --- a/cc/layers/scrollbar_layer.h
|
| +++ b/cc/layers/scrollbar_layer.h
|
| @@ -8,6 +8,7 @@
|
| #include "cc/base/cc_export.h"
|
| #include "cc/input/scrollbar.h"
|
| #include "cc/layers/contents_scaling_layer.h"
|
| +#include "cc/layers/scrollbar_layer_interface.h"
|
| #include "cc/layers/scrollbar_theme_painter.h"
|
| #include "cc/resources/layer_updater.h"
|
| #include "cc/resources/scoped_ui_resource.h"
|
| @@ -15,7 +16,8 @@
|
| namespace cc {
|
| class ScrollbarThemeComposite;
|
|
|
| -class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer {
|
| +class CC_EXPORT ScrollbarLayer : public ScrollbarLayerInterface,
|
| + public ContentsScalingLayer {
|
| public:
|
| virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
|
| OVERRIDE;
|
| @@ -24,12 +26,14 @@ class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer {
|
| scoped_ptr<Scrollbar> scrollbar,
|
| int scroll_layer_id);
|
|
|
| - int scroll_layer_id() const { return scroll_layer_id_; }
|
| - void SetScrollLayerId(int id);
|
| -
|
| virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
|
| + virtual ScrollbarLayerInterface* ToScrollbarLayer() OVERRIDE;
|
| +
|
| + // ScrollbarLayerInterface
|
| + virtual int ScrollLayerId() const OVERRIDE;
|
| + virtual void SetScrollLayerId(int id) OVERRIDE;
|
|
|
| - ScrollbarOrientation Orientation() const;
|
| + virtual ScrollbarOrientation orientation() const OVERRIDE;
|
|
|
| // Layer interface
|
| virtual bool Update(ResourceUpdateQueue* queue,
|
| @@ -44,8 +48,6 @@ class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer {
|
| float* contents_scale_y,
|
| gfx::Size* content_bounds) OVERRIDE;
|
|
|
| - virtual ScrollbarLayer* ToScrollbarLayer() OVERRIDE;
|
| -
|
| protected:
|
| ScrollbarLayer(scoped_ptr<Scrollbar> scrollbar, int scroll_layer_id);
|
| virtual ~ScrollbarLayer();
|
| @@ -68,12 +70,13 @@ class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer {
|
| scoped_refptr<UIResourceBitmap> RasterizeScrollbarPart(gfx::Rect rect,
|
| ScrollbarPart part);
|
|
|
| + int scroll_layer_id_;
|
| +
|
| scoped_ptr<Scrollbar> scrollbar_;
|
|
|
| int thumb_thickness_;
|
| int thumb_length_;
|
| gfx::Rect track_rect_;
|
| - int scroll_layer_id_;
|
|
|
| scoped_ptr<ScopedUIResource> track_resource_;
|
| scoped_ptr<ScopedUIResource> thumb_resource_;
|
|
|