| 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_SCROLLBAR_LAYER_IMPL_BASE_H_ | 5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ |
| 6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ | 6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_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 28 matching lines...) Expand all Loading... |
| 39 bool is_left_side_vertical_scrollbar() { | 39 bool is_left_side_vertical_scrollbar() { |
| 40 return is_left_side_vertical_scrollbar_; | 40 return is_left_side_vertical_scrollbar_; |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool CanScrollOrientation() const; | 43 bool CanScrollOrientation() const; |
| 44 | 44 |
| 45 void PushPropertiesTo(LayerImpl* layer) override; | 45 void PushPropertiesTo(LayerImpl* layer) override; |
| 46 ScrollbarLayerImplBase* ToScrollbarLayer() override; | 46 ScrollbarLayerImplBase* ToScrollbarLayer() override; |
| 47 | 47 |
| 48 // Thumb quad rect in layer space. | 48 // Thumb quad rect in layer space. |
| 49 virtual gfx::Rect ComputeThumbQuadRect() const; | 49 gfx::Rect ComputeThumbQuadRect() const; |
| 50 gfx::Rect ComputeExpandedThumbQuadRect() const; |
| 50 | 51 |
| 51 float thumb_thickness_scale_factor() { | 52 float thumb_thickness_scale_factor() { |
| 52 return thumb_thickness_scale_factor_; | 53 return thumb_thickness_scale_factor_; |
| 53 } | 54 } |
| 54 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); | 55 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); |
| 55 | 56 |
| 56 virtual int ThumbThickness() const = 0; | 57 virtual int ThumbThickness() const = 0; |
| 57 | 58 |
| 58 // TODO(crbug.com/702832): No need for this function once there is element id | 59 // TODO(crbug.com/702832): No need for this function once there is element id |
| 59 // on overlay scrollbar layers. | 60 // on overlay scrollbar layers. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 90 float vertical_adjust_; | 91 float vertical_adjust_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); | 93 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; | 96 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; |
| 96 | 97 |
| 97 } // namespace cc | 98 } // namespace cc |
| 98 | 99 |
| 99 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ | 100 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ |
| OLD | NEW |