| 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 13 matching lines...) Expand all Loading... |
| 24 ~PaintedScrollbarLayerImpl() override; | 24 ~PaintedScrollbarLayerImpl() override; |
| 25 | 25 |
| 26 // LayerImpl implementation. | 26 // LayerImpl implementation. |
| 27 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 27 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
| 28 void PushPropertiesTo(LayerImpl* layer) override; | 28 void PushPropertiesTo(LayerImpl* layer) override; |
| 29 | 29 |
| 30 bool WillDraw(DrawMode draw_mode, | 30 bool WillDraw(DrawMode draw_mode, |
| 31 ResourceProvider* resource_provider) override; | 31 ResourceProvider* resource_provider) override; |
| 32 void AppendQuads(RenderPass* render_pass, | 32 void AppendQuads(RenderPass* render_pass, |
| 33 AppendQuadsData* append_quads_data) override; | 33 AppendQuadsData* append_quads_data) override; |
| 34 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
| 34 | 35 |
| 35 void SetThumbThickness(int thumb_thickness); | 36 void SetThumbThickness(int thumb_thickness); |
| 36 void SetThumbLength(int thumb_length); | 37 void SetThumbLength(int thumb_length); |
| 37 void SetTrackStart(int track_start); | 38 void SetTrackStart(int track_start); |
| 38 void SetTrackLength(int track_length); | 39 void SetTrackLength(int track_length); |
| 39 | 40 |
| 40 void set_track_ui_resource_id(UIResourceId uid) { | 41 void set_track_ui_resource_id(UIResourceId uid) { |
| 41 track_ui_resource_id_ = uid; | 42 track_ui_resource_id_ = uid; |
| 42 } | 43 } |
| 43 void set_thumb_ui_resource_id(UIResourceId uid) { | 44 void set_thumb_ui_resource_id(UIResourceId uid) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 74 int thumb_thickness_; | 75 int thumb_thickness_; |
| 75 int thumb_length_; | 76 int thumb_length_; |
| 76 int track_start_; | 77 int track_start_; |
| 77 int track_length_; | 78 int track_length_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); | 80 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace cc | 83 } // namespace cc |
| 83 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ | 84 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ |
| OLD | NEW |