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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 protected: | 48 protected: |
49 PaintedScrollbarLayerImpl(LayerTreeImpl* tree_impl, | 49 PaintedScrollbarLayerImpl(LayerTreeImpl* tree_impl, |
50 int id, | 50 int id, |
51 ScrollbarOrientation orientation); | 51 ScrollbarOrientation orientation); |
52 | 52 |
53 // ScrollbarLayerImplBase implementation. | 53 // ScrollbarLayerImplBase implementation. |
54 virtual int ThumbThickness() const OVERRIDE; | 54 virtual int ThumbThickness() const OVERRIDE; |
55 virtual int ThumbLength() const OVERRIDE; | 55 virtual int ThumbLength() const OVERRIDE; |
56 virtual float TrackLength() const OVERRIDE; | 56 virtual float TrackLength() const OVERRIDE; |
57 virtual int TrackStart() const OVERRIDE; | 57 virtual int TrackStart() const OVERRIDE; |
| 58 virtual bool IsThumbResizable() const OVERRIDE; |
58 | 59 |
59 private: | 60 private: |
60 virtual const char* LayerTypeAsString() const OVERRIDE; | 61 virtual const char* LayerTypeAsString() const OVERRIDE; |
61 | 62 |
62 UIResourceId track_ui_resource_id_; | 63 UIResourceId track_ui_resource_id_; |
63 UIResourceId thumb_ui_resource_id_; | 64 UIResourceId thumb_ui_resource_id_; |
64 | 65 |
65 int thumb_thickness_; | 66 int thumb_thickness_; |
66 int thumb_length_; | 67 int thumb_length_; |
67 int track_start_; | 68 int track_start_; |
68 int track_length_; | 69 int track_length_; |
69 | 70 |
70 // Difference between the clip layer's height and the visible viewport | 71 // Difference between the clip layer's height and the visible viewport |
71 // height (which may differ in the presence of top-controls hiding). | 72 // height (which may differ in the presence of top-controls hiding). |
72 float vertical_adjust_; | 73 float vertical_adjust_; |
73 | 74 |
74 int scroll_layer_id_; | 75 int scroll_layer_id_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); | 77 DISALLOW_COPY_AND_ASSIGN(PaintedScrollbarLayerImpl); |
77 }; | 78 }; |
78 | 79 |
79 } // namespace cc | 80 } // namespace cc |
80 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ | 81 #endif // CC_LAYERS_PAINTED_SCROLLBAR_LAYER_IMPL_H_ |
OLD | NEW |