OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h" | |
6 | |
7 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | |
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemePa
inter.h" | |
9 | |
10 using WebKit::WebScrollbarThemePainter; | |
11 | |
12 namespace webkit { | |
13 | |
14 WebToCCScrollbarThemePainterAdapter:: | |
15 WebToCCScrollbarThemePainterAdapter( | |
16 scoped_ptr<WebScrollbarThemePainter> web_painter) | |
17 : painter_(web_painter.Pass()) {} | |
18 | |
19 WebToCCScrollbarThemePainterAdapter::~WebToCCScrollbarThemePainterAdapter() {} | |
20 | |
21 void WebToCCScrollbarThemePainterAdapter::PaintScrollbarBackground( | |
22 SkCanvas* canvas, | |
23 gfx::Rect rect) { | |
24 painter_->paintScrollbarBackground(canvas, rect); | |
25 } | |
26 | |
27 void WebToCCScrollbarThemePainterAdapter::PaintTrackBackground( | |
28 SkCanvas* canvas, | |
29 gfx::Rect rect) { | |
30 painter_->paintTrackBackground(canvas, rect); | |
31 } | |
32 | |
33 void WebToCCScrollbarThemePainterAdapter::PaintBackTrackPart( | |
34 SkCanvas* canvas, | |
35 gfx::Rect rect) { | |
36 painter_->paintBackTrackPart(canvas, rect); | |
37 } | |
38 | |
39 void WebToCCScrollbarThemePainterAdapter::PaintForwardTrackPart( | |
40 SkCanvas* canvas, | |
41 gfx::Rect rect) { | |
42 painter_->paintForwardTrackPart(canvas, rect); | |
43 } | |
44 | |
45 void WebToCCScrollbarThemePainterAdapter::PaintBackButtonStart( | |
46 SkCanvas* canvas, | |
47 gfx::Rect rect) { | |
48 painter_->paintBackButtonStart(canvas, rect); | |
49 } | |
50 | |
51 void WebToCCScrollbarThemePainterAdapter::PaintBackButtonEnd( | |
52 SkCanvas* canvas, | |
53 gfx::Rect rect) { | |
54 painter_->paintBackButtonEnd(canvas, rect); | |
55 } | |
56 | |
57 void WebToCCScrollbarThemePainterAdapter::PaintForwardButtonStart( | |
58 SkCanvas* canvas, | |
59 gfx::Rect rect) { | |
60 painter_->paintForwardButtonStart(canvas, rect); | |
61 } | |
62 | |
63 void WebToCCScrollbarThemePainterAdapter::PaintForwardButtonEnd( | |
64 SkCanvas* canvas, | |
65 gfx::Rect rect) { | |
66 painter_->paintForwardButtonEnd(canvas, rect); | |
67 } | |
68 | |
69 void WebToCCScrollbarThemePainterAdapter::PaintTickmarks( | |
70 SkCanvas* canvas, | |
71 gfx::Rect rect) { | |
72 painter_->paintTickmarks(canvas, rect); | |
73 } | |
74 | |
75 void WebToCCScrollbarThemePainterAdapter::PaintThumb(SkCanvas* canvas, | |
76 gfx::Rect rect) { | |
77 painter_->paintThumb(canvas, rect); | |
78 } | |
79 | |
80 } // namespace webkit | |
OLD | NEW |