Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.cc

Issue 12496013: Move compositor bindings implementations out of WebKit::, fix style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698