| 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/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/input/scrollbar.h" | 10 #include "cc/input/scrollbar.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 | 38 |
| 39 ScrollbarOrientation orientation() const { return orientation_; } | 39 ScrollbarOrientation orientation() const { return orientation_; } |
| 40 bool is_left_side_vertical_scrollbar() { | 40 bool is_left_side_vertical_scrollbar() { |
| 41 return is_left_side_vertical_scrollbar_; | 41 return is_left_side_vertical_scrollbar_; |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool CanScrollOrientation() const; | 44 bool CanScrollOrientation() const; |
| 45 | 45 |
| 46 void PushPropertiesTo(LayerImpl* layer) override; | 46 void PushPropertiesTo(LayerImpl* layer) override; |
| 47 void DidBecomeActive() override; | |
| 48 ScrollbarLayerImplBase* ToScrollbarLayer() override; | 47 ScrollbarLayerImplBase* ToScrollbarLayer() override; |
| 49 | 48 |
| 50 // Thumb quad rect in layer space. | 49 // Thumb quad rect in layer space. |
| 51 virtual gfx::Rect ComputeThumbQuadRect() const; | 50 virtual gfx::Rect ComputeThumbQuadRect() const; |
| 52 | 51 |
| 53 float thumb_thickness_scale_factor() { | 52 float thumb_thickness_scale_factor() { |
| 54 return thumb_thickness_scale_factor_; | 53 return thumb_thickness_scale_factor_; |
| 55 } | 54 } |
| 56 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); | 55 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); |
| 57 | 56 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 87 float vertical_adjust_; | 86 float vertical_adjust_; |
| 88 | 87 |
| 89 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); | 88 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; | 91 typedef std::set<ScrollbarLayerImplBase*> ScrollbarSet; |
| 93 | 92 |
| 94 } // namespace cc | 93 } // namespace cc |
| 95 | 94 |
| 96 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ | 95 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ |
| OLD | NEW |