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/solid_color_scrollbar_layer.h" | 5 #include "cc/layers/solid_color_scrollbar_layer.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include <memory> |
| 8 |
8 #include "cc/layers/layer_impl.h" | 9 #include "cc/layers/layer_impl.h" |
9 #include "cc/layers/solid_color_scrollbar_layer_impl.h" | 10 #include "cc/layers/solid_color_scrollbar_layer_impl.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 scoped_ptr<LayerImpl> SolidColorScrollbarLayer::CreateLayerImpl( | 14 std::unique_ptr<LayerImpl> SolidColorScrollbarLayer::CreateLayerImpl( |
14 LayerTreeImpl* tree_impl) { | 15 LayerTreeImpl* tree_impl) { |
15 const bool kIsOverlayScrollbar = true; | 16 const bool kIsOverlayScrollbar = true; |
16 return SolidColorScrollbarLayerImpl::Create(tree_impl, | 17 return SolidColorScrollbarLayerImpl::Create(tree_impl, |
17 id(), | 18 id(), |
18 orientation(), | 19 orientation(), |
19 thumb_thickness_, | 20 thumb_thickness_, |
20 track_start_, | 21 track_start_, |
21 is_left_side_vertical_scrollbar_, | 22 is_left_side_vertical_scrollbar_, |
22 kIsOverlayScrollbar); | 23 kIsOverlayScrollbar); |
23 } | 24 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 78 |
78 scroll_layer_id_ = layer_id; | 79 scroll_layer_id_ = layer_id; |
79 SetNeedsFullTreeSync(); | 80 SetNeedsFullTreeSync(); |
80 } | 81 } |
81 | 82 |
82 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const { | 83 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const { |
83 return orientation_; | 84 return orientation_; |
84 } | 85 } |
85 | 86 |
86 } // namespace cc | 87 } // namespace cc |
OLD | NEW |