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 "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/input/scrollbar.h" | 9 #include "cc/input/scrollbar.h" |
10 #include "cc/layers/scrollbar_layer_impl_base.h" | 10 #include "cc/layers/scrollbar_layer_impl_base.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 ScrollbarOrientation orientation); | 23 ScrollbarOrientation orientation); |
24 virtual ~PaintedScrollbarLayerImpl(); | 24 virtual ~PaintedScrollbarLayerImpl(); |
25 | 25 |
26 // LayerImpl implementation. | 26 // LayerImpl implementation. |
27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
28 OVERRIDE; | 28 OVERRIDE; |
29 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 29 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
30 | 30 |
31 virtual bool WillDraw(DrawMode draw_mode, | 31 virtual bool WillDraw(DrawMode draw_mode, |
32 ResourceProvider* resource_provider) OVERRIDE; | 32 ResourceProvider* resource_provider) OVERRIDE; |
33 virtual void AppendQuads(QuadSink* quad_sink, | 33 virtual void AppendQuads(RenderPass* render_pass, |
| 34 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
34 AppendQuadsData* append_quads_data) OVERRIDE; | 35 AppendQuadsData* append_quads_data) OVERRIDE; |
35 | 36 |
36 void SetThumbThickness(int thumb_thickness); | 37 void SetThumbThickness(int thumb_thickness); |
37 void SetThumbLength(int thumb_length); | 38 void SetThumbLength(int thumb_length); |
38 void SetTrackStart(int track_start); | 39 void SetTrackStart(int track_start); |
39 void SetTrackLength(int track_length); | 40 void SetTrackLength(int track_length); |
40 | 41 |
41 void set_track_ui_resource_id(UIResourceId uid) { | 42 void set_track_ui_resource_id(UIResourceId uid) { |
42 track_ui_resource_id_ = uid; | 43 track_ui_resource_id_ = uid; |
43 } | 44 } |
(...skipping 28 matching lines...) Expand all Loading... |
72 // height (which may differ in the presence of top-controls hiding). | 73 // height (which may differ in the presence of top-controls hiding). |
73 float vertical_adjust_; | 74 float vertical_adjust_; |
74 | 75 |
75 int scroll_layer_id_; | 76 int scroll_layer_id_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); | 78 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace cc | 81 } // namespace cc |
81 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ | 82 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ |
OLD | NEW |