Index: cc/layers/solid_color_scrollbar_layer_impl.cc |
diff --git a/cc/layers/solid_color_scrollbar_layer_impl.cc b/cc/layers/solid_color_scrollbar_layer_impl.cc |
index 5c63203c1b0973884ad5b9977ef0385a61c30765..0cfc853f84146b55fb4cc066d9cff14d1135c378 100644 |
--- a/cc/layers/solid_color_scrollbar_layer_impl.cc |
+++ b/cc/layers/solid_color_scrollbar_layer_impl.cc |
@@ -15,19 +15,28 @@ scoped_ptr<SolidColorScrollbarLayerImpl> SolidColorScrollbarLayerImpl::Create( |
int id, |
ScrollbarOrientation orientation, |
int thumb_thickness, |
- bool is_left_side_vertical_scrollbar) { |
- return make_scoped_ptr(new SolidColorScrollbarLayerImpl( |
- tree_impl, id, orientation, thumb_thickness, |
- is_left_side_vertical_scrollbar)); |
+ bool is_left_side_vertical_scrollbar, |
+ bool is_overlay) { |
+ return make_scoped_ptr( |
+ new SolidColorScrollbarLayerImpl(tree_impl, |
+ id, |
+ orientation, |
+ thumb_thickness, |
+ is_left_side_vertical_scrollbar, |
+ is_overlay)); |
} |
SolidColorScrollbarLayerImpl::~SolidColorScrollbarLayerImpl() {} |
scoped_ptr<LayerImpl> SolidColorScrollbarLayerImpl::CreateLayerImpl( |
LayerTreeImpl* tree_impl) { |
- return SolidColorScrollbarLayerImpl::Create( |
- tree_impl, id(), orientation(), thumb_thickness_, |
- is_left_side_vertical_scrollbar()).PassAs<LayerImpl>(); |
+ return SolidColorScrollbarLayerImpl::Create(tree_impl, |
+ id(), |
+ orientation(), |
+ thumb_thickness_, |
+ is_left_side_vertical_scrollbar(), |
+ is_overlay_scrollbar()) |
+ .PassAs<LayerImpl>(); |
} |
SolidColorScrollbarLayerImpl::SolidColorScrollbarLayerImpl( |
@@ -35,9 +44,13 @@ SolidColorScrollbarLayerImpl::SolidColorScrollbarLayerImpl( |
int id, |
ScrollbarOrientation orientation, |
int thumb_thickness, |
- bool is_left_side_vertical_scrollbar) |
- : ScrollbarLayerImplBase(tree_impl, id, orientation, |
- is_left_side_vertical_scrollbar), |
+ bool is_left_side_vertical_scrollbar, |
+ bool is_overlay) |
+ : ScrollbarLayerImplBase(tree_impl, |
+ id, |
+ orientation, |
+ is_left_side_vertical_scrollbar, |
+ is_overlay), |
thumb_thickness_(thumb_thickness), |
color_(tree_impl->settings().solid_color_scrollbar_color) {} |