Chromium Code Reviews| Index: cc/layers/solid_color_scrollbar_layer_impl.h |
| diff --git a/cc/layers/solid_color_scrollbar_layer_impl.h b/cc/layers/solid_color_scrollbar_layer_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c3cd519482fd417e2455bda2b269b18083c567fc |
| --- /dev/null |
| +++ b/cc/layers/solid_color_scrollbar_layer_impl.h |
| @@ -0,0 +1,48 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_ |
| +#define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_ |
| + |
| +#include "cc/base/cc_export.h" |
| +#include "cc/layers/scrollbar_layer_impl_base.h" |
| + |
| +namespace cc { |
| + |
| +class SolidColorScrollbarLayerImpl : public ScrollbarLayerImplBase { |
| + public: |
| + static scoped_ptr<SolidColorScrollbarLayerImpl> Create( |
| + LayerTreeImpl* tree_impl, |
| + int id, |
| + ScrollbarOrientation orientation, |
| + int thumb_thickness); |
| + virtual ~SolidColorScrollbarLayerImpl(); |
| + |
| + virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
|
enne (OOO)
2013/08/28 18:22:08
Comment about what class this is overriding.
wjmaclean
2013/08/28 20:51:46
Done.
|
| + OVERRIDE; |
| + virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| + |
| + virtual void AppendQuads(QuadSink* quad_sink, |
| + AppendQuadsData* append_quads_data) OVERRIDE; |
| + |
| + |
| + protected: |
| + SolidColorScrollbarLayerImpl(LayerTreeImpl* tree_impl, |
| + int id, |
| + ScrollbarOrientation orientation, |
| + int thumb_thickness); |
| + |
| + virtual int ThumbThickness() const OVERRIDE; |
|
enne (OOO)
2013/08/28 18:22:08
Comment about what class this is overriding.
wjmaclean
2013/08/28 20:51:46
Done.
|
| + virtual int ThumbLength() const OVERRIDE; |
| + virtual float TrackLength() const OVERRIDE; |
| + virtual int TrackStart() const OVERRIDE; |
| + |
| + private: |
| + int thumb_thickness_; |
| + SkColor color_; |
| +}; |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_IMPL_H_ |