OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 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. |
| 4 |
| 5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ |
| 6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ |
| 7 |
| 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/layers/layer.h" |
| 10 #include "cc/layers/scrollbar_layer_base.h" |
| 11 |
| 12 namespace cc { |
| 13 |
| 14 class CC_EXPORT SolidColorScrollbarLayer : public ScrollbarLayerBase, |
| 15 public Layer { |
| 16 public: |
| 17 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
| 18 OVERRIDE; |
| 19 |
| 20 static scoped_refptr<SolidColorScrollbarLayer> Create( |
| 21 ScrollbarOrientation orientation, |
| 22 int thumb_thickness, |
| 23 SkColor color, |
| 24 int scroll_layer_id); |
| 25 |
| 26 virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE; |
| 27 virtual ScrollbarLayerBase* ToScrollbarLayerBase() OVERRIDE; |
| 28 virtual void SetScrollLayerId(int id) OVERRIDE; |
| 29 |
| 30 protected: |
| 31 SolidColorScrollbarLayer(ScrollbarOrientation orientation, |
| 32 int thumb_thickness, |
| 33 SkColor color, |
| 34 int scroll_layer_id); |
| 35 virtual ~SolidColorScrollbarLayer(); |
| 36 |
| 37 private: |
| 38 int thumb_thickness_; |
| 39 SkColor color_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); |
| 42 }; |
| 43 |
| 44 } // namespace cc |
| 45 |
| 46 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ |
OLD | NEW |