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 #include "cc/layers/scrollbar_layer_impl_base.h" | 5 #include "cc/layers/scrollbar_layer_impl_base.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include "cc/trees/layer_tree_impl.h" | 8 #include "cc/trees/layer_tree_impl.h" |
9 #include "ui/gfx/rect_conversions.h" | 9 #include "ui/gfx/geometry/rect_conversions.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 ScrollbarLayerImplBase::ScrollbarLayerImplBase( | 13 ScrollbarLayerImplBase::ScrollbarLayerImplBase( |
14 LayerTreeImpl* tree_impl, | 14 LayerTreeImpl* tree_impl, |
15 int id, | 15 int id, |
16 ScrollbarOrientation orientation, | 16 ScrollbarOrientation orientation, |
17 bool is_left_side_vertical_scrollbar, | 17 bool is_left_side_vertical_scrollbar, |
18 bool is_overlay) | 18 bool is_overlay) |
19 : LayerImpl(tree_impl, id), | 19 : LayerImpl(tree_impl, id), |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 255 } |
256 | 256 |
257 void ScrollbarLayerImplBase::ScrollbarParametersDidChange(bool on_resize) { | 257 void ScrollbarLayerImplBase::ScrollbarParametersDidChange(bool on_resize) { |
258 if (!clip_layer_ || !scroll_layer_) | 258 if (!clip_layer_ || !scroll_layer_) |
259 return; | 259 return; |
260 | 260 |
261 scroll_layer_->SetScrollbarPosition(this, clip_layer_, on_resize); | 261 scroll_layer_->SetScrollbarPosition(this, clip_layer_, on_resize); |
262 } | 262 } |
263 | 263 |
264 } // namespace cc | 264 } // namespace cc |
OLD | NEW |