OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ | 5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ |
6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ | 6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
11 #include "cc/layers/layer.h" | 11 #include "cc/layers/layer.h" |
12 #include "cc/layers/scrollbar_layer_interface.h" | 12 #include "cc/layers/scrollbar_layer_interface.h" |
13 #include "cc/layers/scrollbar_theme_painter.h" | 13 #include "cc/layers/scrollbar_theme_painter.h" |
14 #include "cc/resources/scoped_ui_resource.h" | 14 #include "cc/resources/scoped_ui_resource.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 class ScrollbarThemeComposite; | |
18 | 17 |
19 class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface, | 18 class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface, |
20 public Layer { | 19 public Layer { |
21 public: | 20 public: |
22 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 21 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
23 | 22 |
24 static scoped_refptr<PaintedScrollbarLayer> Create( | 23 static scoped_refptr<PaintedScrollbarLayer> Create( |
25 std::unique_ptr<Scrollbar> scrollbar, | 24 std::unique_ptr<Scrollbar> scrollbar, |
26 int scroll_layer_id); | 25 int scroll_layer_id); |
27 | 26 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 std::unique_ptr<ScopedUIResource> thumb_resource_; | 94 std::unique_ptr<ScopedUIResource> thumb_resource_; |
96 | 95 |
97 float thumb_opacity_; | 96 float thumb_opacity_; |
98 | 97 |
99 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer); | 98 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayer); |
100 }; | 99 }; |
101 | 100 |
102 } // namespace cc | 101 } // namespace cc |
103 | 102 |
104 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ | 103 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_H_ |
OLD | NEW |