| 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/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void set_thumb_opacity(float opacity) { thumb_opacity_ = opacity; } | 50 void set_thumb_opacity(float opacity) { thumb_opacity_ = opacity; } |
| 51 | 51 |
| 52 void set_internal_contents_scale_and_bounds(float content_scale, | 52 void set_internal_contents_scale_and_bounds(float content_scale, |
| 53 const gfx::Size& content_bounds) { | 53 const gfx::Size& content_bounds) { |
| 54 internal_contents_scale_ = content_scale; | 54 internal_contents_scale_ = content_scale; |
| 55 internal_content_bounds_ = content_bounds; | 55 internal_content_bounds_ = content_bounds; |
| 56 } | 56 } |
| 57 | 57 |
| 58 int ThumbThickness() const override; | 58 int ThumbThickness() const override; |
| 59 | 59 |
| 60 LayerTreeSettings::ScrollbarAnimator GetScrollbarAnimator() const override; |
| 61 |
| 60 protected: | 62 protected: |
| 61 PaintedScrollbarLayerImpl(LayerTreeImpl* tree_impl, | 63 PaintedScrollbarLayerImpl(LayerTreeImpl* tree_impl, |
| 62 int id, | 64 int id, |
| 63 ScrollbarOrientation orientation, | 65 ScrollbarOrientation orientation, |
| 64 bool is_left_side_vertical_scrollbar, | 66 bool is_left_side_vertical_scrollbar, |
| 65 bool is_overlay); | 67 bool is_overlay); |
| 66 | 68 |
| 67 // ScrollbarLayerImplBase implementation. | 69 // ScrollbarLayerImplBase implementation. |
| 68 int ThumbLength() const override; | 70 int ThumbLength() const override; |
| 69 float TrackLength() const override; | 71 float TrackLength() const override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 84 int thumb_thickness_; | 86 int thumb_thickness_; |
| 85 int thumb_length_; | 87 int thumb_length_; |
| 86 int track_start_; | 88 int track_start_; |
| 87 int track_length_; | 89 int track_length_; |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); | 91 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace cc | 94 } // namespace cc |
| 93 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ | 95 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ |
| OLD | NEW |