| Index: webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.cc
|
| diff --git a/webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.cc b/webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2c3361df58218c99780ee9fe75f6a451bc494e5e
|
| --- /dev/null
|
| +++ b/webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.cc
|
| @@ -0,0 +1,65 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "web_to_ccscrollbar_theme_painter_adapter.h"
|
| +
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemePainter.h"
|
| +
|
| +namespace WebKit {
|
| +
|
| +WebToCCScrollbarThemePainterAdapter::~WebToCCScrollbarThemePainterAdapter() {
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintScrollbarBackground(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintScrollbarBackground(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintTrackBackground(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintTrackBackground(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintBackTrackPart(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintBackTrackPart(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintForwardTrackPart(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintForwardTrackPart(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintBackButtonStart(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintBackButtonStart(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintBackButtonEnd(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintBackButtonEnd(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintForwardButtonStart(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintForwardButtonStart(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintForwardButtonEnd(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintForwardButtonEnd(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintTickmarks(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintTickmarks(canvas, rect);
|
| +}
|
| +
|
| +void WebToCCScrollbarThemePainterAdapter::PaintThumb(
|
| + SkCanvas* canvas, const gfx::Rect& rect) {
|
| + painter_->paintThumb(canvas, rect);
|
| +}
|
| +
|
| +} // namespace WebKit
|
|
|