OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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_SCROLLBAR_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_H_ |
6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_H_ | 6 #define CC_LAYERS_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/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 int id, | 21 int id, |
22 ScrollbarOrientation orientation); | 22 ScrollbarOrientation orientation); |
23 virtual ~ScrollbarLayerImpl(); | 23 virtual ~ScrollbarLayerImpl(); |
24 | 24 |
25 // LayerImpl implementation. | 25 // LayerImpl implementation. |
26 virtual ScrollbarLayerImpl* ToScrollbarLayer() OVERRIDE; | 26 virtual ScrollbarLayerImpl* ToScrollbarLayer() OVERRIDE; |
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, |
| 32 ResourceProvider* resource_provider) OVERRIDE; |
31 virtual void AppendQuads(QuadSink* quad_sink, | 33 virtual void AppendQuads(QuadSink* quad_sink, |
32 AppendQuadsData* append_quads_data) OVERRIDE; | 34 AppendQuadsData* append_quads_data) OVERRIDE; |
33 | 35 |
34 virtual void DidLoseOutputSurface() OVERRIDE; | 36 virtual void DidLoseOutputSurface() OVERRIDE; |
35 | 37 |
36 int scroll_layer_id() const { return scroll_layer_id_; } | 38 int scroll_layer_id() const { return scroll_layer_id_; } |
37 void set_scroll_layer_id(int id) { scroll_layer_id_ = id; } | 39 void set_scroll_layer_id(int id) { scroll_layer_id_ = id; } |
38 | 40 |
39 ScrollbarOrientation Orientation() const; | 41 ScrollbarOrientation Orientation() const; |
40 float CurrentPos() const; | 42 float CurrentPos() const; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool is_scroll_view_scrollbar_; | 105 bool is_scroll_view_scrollbar_; |
104 bool enabled_; | 106 bool enabled_; |
105 bool is_custom_scrollbar_; | 107 bool is_custom_scrollbar_; |
106 bool is_overlay_scrollbar_; | 108 bool is_overlay_scrollbar_; |
107 | 109 |
108 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImpl); | 110 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImpl); |
109 }; | 111 }; |
110 | 112 |
111 } // namespace cc | 113 } // namespace cc |
112 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_H_ | 114 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_H_ |
OLD | NEW |