1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_
8 #include "cc/base/cc_export.h"
9 #include "cc/layers/scrollbar_layer_impl_base.h"
13 class CC_EXPORT SolidColorScrollbarLayerImpl : public ScrollbarLayerImplBase {
15 static scoped_ptr<SolidColorScrollbarLayerImpl> Create(
16 LayerTreeImpl* tree_impl,
18 ScrollbarOrientation orientation,
21 bool is_left_side_vertical_scrollbar,
23 virtual ~SolidColorScrollbarLayerImpl();
25 // LayerImpl overrides.
26 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
28 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
30 virtual void AppendQuads(QuadSink* quad_sink,
31 AppendQuadsData* append_quads_data) OVERRIDE;
35 SolidColorScrollbarLayerImpl(LayerTreeImpl* tree_impl,
37 ScrollbarOrientation orientation,
40 bool is_left_side_vertical_scrollbar,
43 // ScrollbarLayerImplBase implementation.
44 virtual int ThumbThickness() const OVERRIDE;
45 virtual int ThumbLength() const OVERRIDE;
46 virtual float TrackLength() const OVERRIDE;
47 virtual int TrackStart() const OVERRIDE;
48 virtual bool IsThumbResizable() const OVERRIDE;
58 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_