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_IMPL_H_ | 5 #ifndef CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ |
6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ | 6 #define CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_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/scrollbar_layer_impl_base.h" | 11 #include "cc/layers/scrollbar_layer_impl_base.h" |
12 #include "cc/resources/ui_resource_client.h" | 12 #include "cc/resources/ui_resource_client.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class LayerTreeImpl; | 16 class LayerTreeImpl; |
17 class ScrollView; | |
18 | 17 |
19 class CC_EXPORT PaintedScrollbarLayerImpl : public ScrollbarLayerImplBase { | 18 class CC_EXPORT PaintedScrollbarLayerImpl : public ScrollbarLayerImplBase { |
20 public: | 19 public: |
21 static std::unique_ptr<PaintedScrollbarLayerImpl> Create( | 20 static std::unique_ptr<PaintedScrollbarLayerImpl> Create( |
22 LayerTreeImpl* tree_impl, | 21 LayerTreeImpl* tree_impl, |
23 int id, | 22 int id, |
24 ScrollbarOrientation orientation, | 23 ScrollbarOrientation orientation, |
25 bool is_left_side_vertical_scrollbar, | 24 bool is_left_side_vertical_scrollbar, |
26 bool is_overlay); | 25 bool is_overlay); |
27 ~PaintedScrollbarLayerImpl() override; | 26 ~PaintedScrollbarLayerImpl() override; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 int thumb_thickness_; | 83 int thumb_thickness_; |
85 int thumb_length_; | 84 int thumb_length_; |
86 int track_start_; | 85 int track_start_; |
87 int track_length_; | 86 int track_length_; |
88 | 87 |
89 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); | 88 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); |
90 }; | 89 }; |
91 | 90 |
92 } // namespace cc | 91 } // namespace cc |
93 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ | 92 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ |
OLD | NEW |