| 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/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h" | 5 #include "webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 7 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
| 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemePa
inter.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemePa
inter.h" |
| 9 | 9 |
| 10 namespace WebKit { | 10 using WebKit::WebScrollbarThemePainter; |
| 11 |
| 12 namespace webkit { |
| 13 |
| 14 WebToCCScrollbarThemePainterAdapter:: |
| 15 WebToCCScrollbarThemePainterAdapter( |
| 16 scoped_ptr<WebScrollbarThemePainter> web_painter) |
| 17 : painter_(web_painter.Pass()) {} |
| 11 | 18 |
| 12 WebToCCScrollbarThemePainterAdapter::~WebToCCScrollbarThemePainterAdapter() {} | 19 WebToCCScrollbarThemePainterAdapter::~WebToCCScrollbarThemePainterAdapter() {} |
| 13 | 20 |
| 14 void WebToCCScrollbarThemePainterAdapter::PaintScrollbarBackground( | 21 void WebToCCScrollbarThemePainterAdapter::PaintScrollbarBackground( |
| 15 SkCanvas* canvas, | 22 SkCanvas* canvas, |
| 16 const gfx::Rect& rect) { | 23 const gfx::Rect& rect) { |
| 17 painter_->paintScrollbarBackground(canvas, rect); | 24 painter_->paintScrollbarBackground(canvas, rect); |
| 18 } | 25 } |
| 19 | 26 |
| 20 void WebToCCScrollbarThemePainterAdapter::PaintTrackBackground( | 27 void WebToCCScrollbarThemePainterAdapter::PaintTrackBackground( |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 SkCanvas* canvas, | 70 SkCanvas* canvas, |
| 64 const gfx::Rect& rect) { | 71 const gfx::Rect& rect) { |
| 65 painter_->paintTickmarks(canvas, rect); | 72 painter_->paintTickmarks(canvas, rect); |
| 66 } | 73 } |
| 67 | 74 |
| 68 void WebToCCScrollbarThemePainterAdapter::PaintThumb(SkCanvas* canvas, | 75 void WebToCCScrollbarThemePainterAdapter::PaintThumb(SkCanvas* canvas, |
| 69 const gfx::Rect& rect) { | 76 const gfx::Rect& rect) { |
| 70 painter_->paintThumb(canvas, rect); | 77 painter_->paintThumb(canvas, rect); |
| 71 } | 78 } |
| 72 | 79 |
| 73 } // namespace WebKit | 80 } // namespace webkit |
| OLD | NEW |