| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "webkit/renderer/compositor_bindings/web_to_ccscrollbar_theme_painter_a
dapter.h" | 5 #include "webkit/renderer/compositor_bindings/web_to_ccscrollbar_theme_painter_a
dapter.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 7 #include "third_party/WebKit/public/platform/WebRect.h" |
| 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemePa
inter.h" | 8 #include "third_party/WebKit/public/platform/WebScrollbarThemePainter.h" |
| 9 | 9 |
| 10 using WebKit::WebScrollbarThemePainter; | 10 using WebKit::WebScrollbarThemePainter; |
| 11 | 11 |
| 12 namespace webkit { | 12 namespace webkit { |
| 13 | 13 |
| 14 WebToCCScrollbarThemePainterAdapter:: | 14 WebToCCScrollbarThemePainterAdapter:: |
| 15 WebToCCScrollbarThemePainterAdapter( | 15 WebToCCScrollbarThemePainterAdapter( |
| 16 scoped_ptr<WebScrollbarThemePainter> web_painter) | 16 scoped_ptr<WebScrollbarThemePainter> web_painter) |
| 17 : painter_(web_painter.Pass()) {} | 17 : painter_(web_painter.Pass()) {} |
| 18 | 18 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 gfx::Rect rect) { | 71 gfx::Rect rect) { |
| 72 painter_->paintTickmarks(canvas, rect); | 72 painter_->paintTickmarks(canvas, rect); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void WebToCCScrollbarThemePainterAdapter::PaintThumb(SkCanvas* canvas, | 75 void WebToCCScrollbarThemePainterAdapter::PaintThumb(SkCanvas* canvas, |
| 76 gfx::Rect rect) { | 76 gfx::Rect rect) { |
| 77 painter_->paintThumb(canvas, rect); | 77 painter_->paintThumb(canvas, rect); |
| 78 } | 78 } |
| 79 | 79 |
| 80 } // namespace webkit | 80 } // namespace webkit |
| OLD | NEW |