OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/blink/web_compositor_support_impl.h" | 5 #include "cc/blink/web_compositor_support_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "cc/blink/web_content_layer_impl.h" | 10 #include "cc/blink/web_content_layer_impl.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 std::unique_ptr<WebScrollbarLayer> | 64 std::unique_ptr<WebScrollbarLayer> |
65 WebCompositorSupportImpl::createScrollbarLayer( | 65 WebCompositorSupportImpl::createScrollbarLayer( |
66 std::unique_ptr<WebScrollbar> scrollbar, | 66 std::unique_ptr<WebScrollbar> scrollbar, |
67 WebScrollbarThemePainter painter, | 67 WebScrollbarThemePainter painter, |
68 std::unique_ptr<WebScrollbarThemeGeometry> geometry) { | 68 std::unique_ptr<WebScrollbarThemeGeometry> geometry) { |
69 return base::MakeUnique<WebScrollbarLayerImpl>(std::move(scrollbar), painter, | 69 return base::MakeUnique<WebScrollbarLayerImpl>(std::move(scrollbar), painter, |
70 std::move(geometry)); | 70 std::move(geometry)); |
71 } | 71 } |
72 | 72 |
73 std::unique_ptr<WebScrollbarLayer> | 73 std::unique_ptr<WebScrollbarLayer> |
| 74 WebCompositorSupportImpl::createOverlayScrollbarLayer( |
| 75 std::unique_ptr<WebScrollbar> scrollbar, |
| 76 WebScrollbarThemePainter painter, |
| 77 std::unique_ptr<WebScrollbarThemeGeometry> geometry) { |
| 78 return base::MakeUnique<WebScrollbarLayerImpl>(std::move(scrollbar), painter, |
| 79 std::move(geometry), true); |
| 80 } |
| 81 |
| 82 std::unique_ptr<WebScrollbarLayer> |
74 WebCompositorSupportImpl::createSolidColorScrollbarLayer( | 83 WebCompositorSupportImpl::createSolidColorScrollbarLayer( |
75 WebScrollbar::Orientation orientation, | 84 WebScrollbar::Orientation orientation, |
76 int thumb_thickness, | 85 int thumb_thickness, |
77 int track_start, | 86 int track_start, |
78 bool is_left_side_vertical_scrollbar) { | 87 bool is_left_side_vertical_scrollbar) { |
79 return base::MakeUnique<WebScrollbarLayerImpl>( | 88 return base::MakeUnique<WebScrollbarLayerImpl>( |
80 orientation, thumb_thickness, track_start, | 89 orientation, thumb_thickness, track_start, |
81 is_left_side_vertical_scrollbar); | 90 is_left_side_vertical_scrollbar); |
82 } | 91 } |
83 | 92 |
84 } // namespace cc_blink | 93 } // namespace cc_blink |
OLD | NEW |