| 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" |
| 11 #include "cc/quads/solid_color_draw_quad.h" | 11 #include "cc/quads/solid_color_draw_quad.h" |
| 12 #include "cc/quads/texture_draw_quad.h" | 12 #include "cc/quads/texture_draw_quad.h" |
| 13 #include "cc/trees/layer_tree_impl.h" | 13 #include "cc/trees/layer_tree_impl.h" |
| 14 #include "cc/trees/layer_tree_settings.h" | 14 #include "cc/trees/layer_tree_settings.h" |
| 15 #include "cc/trees/occlusion.h" | 15 #include "cc/trees/occlusion.h" |
| 16 #include "ui/gfx/rect_conversions.h" | 16 #include "ui/gfx/geometry/rect_conversions.h" |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 | 19 |
| 20 scoped_ptr<PaintedScrollbarLayerImpl> PaintedScrollbarLayerImpl::Create( | 20 scoped_ptr<PaintedScrollbarLayerImpl> PaintedScrollbarLayerImpl::Create( |
| 21 LayerTreeImpl* tree_impl, | 21 LayerTreeImpl* tree_impl, |
| 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 } |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { | 181 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { |
| 182 return false; | 182 return false; |
| 183 } | 183 } |
| 184 | 184 |
| 185 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { | 185 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { |
| 186 return "cc::PaintedScrollbarLayerImpl"; | 186 return "cc::PaintedScrollbarLayerImpl"; |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace cc | 189 } // namespace cc |
| OLD | NEW |