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 <memory> | 7 #include <memory> |
8 | 8 |
9 #include "cc/layers/layer_impl.h" | 9 #include "cc/layers/layer_impl.h" |
10 #include "cc/layers/solid_color_scrollbar_layer_impl.h" | 10 #include "cc/layers/solid_color_scrollbar_layer_impl.h" |
(...skipping 20 matching lines...) Expand all Loading... | |
31 return make_scoped_refptr(new SolidColorScrollbarLayer( | 31 return make_scoped_refptr(new SolidColorScrollbarLayer( |
32 orientation, thumb_thickness, track_start, | 32 orientation, thumb_thickness, track_start, |
33 is_left_side_vertical_scrollbar, scroll_layer_id)); | 33 is_left_side_vertical_scrollbar, scroll_layer_id)); |
34 } | 34 } |
35 | 35 |
36 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs:: | 36 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs:: |
37 SolidColorScrollbarLayerInputs(ScrollbarOrientation orientation, | 37 SolidColorScrollbarLayerInputs(ScrollbarOrientation orientation, |
38 int thumb_thickness, | 38 int thumb_thickness, |
39 int track_start, | 39 int track_start, |
40 bool is_left_side_vertical_scrollbar, | 40 bool is_left_side_vertical_scrollbar, |
41 int scroll_layer_id) | 41 int scroll_layer_id) |
ajuma
2017/03/04 00:04:50
It looks like this gets called in non-test code wi
pdr.
2017/03/04 02:44:23
We can actually do even better: these callsites ar
| |
42 : scroll_layer_id(Layer::INVALID_ID), | 42 : scroll_layer_id(scroll_layer_id), |
43 orientation(orientation), | 43 orientation(orientation), |
44 thumb_thickness(thumb_thickness), | 44 thumb_thickness(thumb_thickness), |
45 track_start(track_start), | 45 track_start(track_start), |
46 is_left_side_vertical_scrollbar(is_left_side_vertical_scrollbar) {} | 46 is_left_side_vertical_scrollbar(is_left_side_vertical_scrollbar) {} |
47 | 47 |
48 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs:: | 48 SolidColorScrollbarLayer::SolidColorScrollbarLayerInputs:: |
49 ~SolidColorScrollbarLayerInputs() = default; | 49 ~SolidColorScrollbarLayerInputs() = default; |
50 | 50 |
51 SolidColorScrollbarLayer::SolidColorScrollbarLayer( | 51 SolidColorScrollbarLayer::SolidColorScrollbarLayer( |
52 ScrollbarOrientation orientation, | 52 ScrollbarOrientation orientation, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 | 105 |
106 solid_color_scrollbar_layer_inputs_.scroll_layer_id = layer_id; | 106 solid_color_scrollbar_layer_inputs_.scroll_layer_id = layer_id; |
107 SetNeedsFullTreeSync(); | 107 SetNeedsFullTreeSync(); |
108 } | 108 } |
109 | 109 |
110 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const { | 110 ScrollbarOrientation SolidColorScrollbarLayer::orientation() const { |
111 return solid_color_scrollbar_layer_inputs_.orientation; | 111 return solid_color_scrollbar_layer_inputs_.orientation; |
112 } | 112 } |
113 | 113 |
114 } // namespace cc | 114 } // namespace cc |
OLD | NEW |