| 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/painted_scrollbar_layer_impl.h" | 5 #include "cc/layers/painted_scrollbar_layer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "cc/animation/scrollbar_animation_controller.h" | 9 #include "cc/animation/scrollbar_animation_controller.h" |
| 10 #include "cc/layers/layer.h" | 10 #include "cc/layers/layer.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 int id, | 22 int id, |
| 23 ScrollbarOrientation orientation) { | 23 ScrollbarOrientation orientation) { |
| 24 return make_scoped_ptr( | 24 return make_scoped_ptr( |
| 25 new PaintedScrollbarLayerImpl(tree_impl, id, orientation)); | 25 new PaintedScrollbarLayerImpl(tree_impl, id, orientation)); |
| 26 } | 26 } |
| 27 | 27 |
| 28 PaintedScrollbarLayerImpl::PaintedScrollbarLayerImpl( | 28 PaintedScrollbarLayerImpl::PaintedScrollbarLayerImpl( |
| 29 LayerTreeImpl* tree_impl, | 29 LayerTreeImpl* tree_impl, |
| 30 int id, | 30 int id, |
| 31 ScrollbarOrientation orientation) | 31 ScrollbarOrientation orientation) |
| 32 : ScrollbarLayerImplBase(tree_impl, id, orientation, false, false), | 32 : ScrollbarLayerImplBase(tree_impl, id, orientation, false), |
| 33 track_ui_resource_id_(0), | 33 track_ui_resource_id_(0), |
| 34 thumb_ui_resource_id_(0), | 34 thumb_ui_resource_id_(0), |
| 35 thumb_thickness_(0), | 35 thumb_thickness_(0), |
| 36 thumb_length_(0), | 36 thumb_length_(0), |
| 37 track_start_(0), | 37 track_start_(0), |
| 38 track_length_(0), | 38 track_length_(0), |
| 39 vertical_adjust_(0.f), | 39 vertical_adjust_(0.f), |
| 40 scroll_layer_id_(Layer::INVALID_ID) {} | 40 scroll_layer_id_(Layer::INVALID_ID) {} |
| 41 | 41 |
| 42 PaintedScrollbarLayerImpl::~PaintedScrollbarLayerImpl() {} | 42 PaintedScrollbarLayerImpl::~PaintedScrollbarLayerImpl() {} |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { | 172 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { |
| 173 return false; | 173 return false; |
| 174 } | 174 } |
| 175 | 175 |
| 176 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { | 176 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { |
| 177 return "cc::PaintedScrollbarLayerImpl"; | 177 return "cc::PaintedScrollbarLayerImpl"; |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace cc | 180 } // namespace cc |
| OLD | NEW |