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_SOLID_COLOR_SCROLLBAR_LAYER_H_ | 5 #ifndef CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ |
6 #define CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ | 6 #define CC_LAYERS_SOLID_COLOR_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/layers/layer.h" | 10 #include "cc/layers/layer.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 bool AlwaysUseActiveTreeOpacity() const override; | 29 bool AlwaysUseActiveTreeOpacity() const override; |
30 ScrollbarLayerInterface* ToScrollbarLayer() override; | 30 ScrollbarLayerInterface* ToScrollbarLayer() override; |
31 | 31 |
32 void SetOpacity(float opacity) override; | 32 void SetOpacity(float opacity) override; |
33 void PushPropertiesTo(LayerImpl* layer) override; | 33 void PushPropertiesTo(LayerImpl* layer) override; |
34 | 34 |
35 void SetNeedsDisplayRect(const gfx::Rect& rect) override; | 35 void SetNeedsDisplayRect(const gfx::Rect& rect) override; |
36 | 36 |
37 // ScrollbarLayerInterface | 37 // ScrollbarLayerInterface |
38 int ScrollLayerId() const override; | 38 int ScrollLayerId() const override; |
39 void SetScrollLayer(int layer_id) override; | |
40 | 39 |
41 ScrollbarOrientation orientation() const override; | 40 ScrollbarOrientation orientation() const override; |
42 | 41 |
43 int thumb_thickness() const { | 42 int thumb_thickness() const { |
44 return solid_color_scrollbar_layer_inputs_.thumb_thickness; | 43 return solid_color_scrollbar_layer_inputs_.thumb_thickness; |
45 } | 44 } |
46 | 45 |
47 int track_start() const { | 46 int track_start() const { |
48 return solid_color_scrollbar_layer_inputs_.track_start; | 47 return solid_color_scrollbar_layer_inputs_.track_start; |
49 } | 48 } |
(...skipping 30 matching lines...) Expand all Loading... |
80 }; | 79 }; |
81 | 80 |
82 SolidColorScrollbarLayerInputs solid_color_scrollbar_layer_inputs_; | 81 SolidColorScrollbarLayerInputs solid_color_scrollbar_layer_inputs_; |
83 | 82 |
84 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); | 83 DISALLOW_COPY_AND_ASSIGN(SolidColorScrollbarLayer); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace cc | 86 } // namespace cc |
88 | 87 |
89 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ | 88 #endif // CC_LAYERS_SOLID_COLOR_SCROLLBAR_LAYER_H_ |
OLD | NEW |