Index: webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h |
diff --git a/webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h b/webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h |
deleted file mode 100644 |
index bfbfc20f6e8e1b59da3b0efe40b5435e23001e10..0000000000000000000000000000000000000000 |
--- a/webkit/compositor_bindings/web_to_ccscrollbar_theme_painter_adapter.h |
+++ /dev/null |
@@ -1,48 +0,0 @@ |
-// 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. |
- |
-#ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCSCROLLBAR_THEME_PAINTER_ADAPTER_H_ |
-#define WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCSCROLLBAR_THEME_PAINTER_ADAPTER_H_ |
- |
-#include "base/memory/scoped_ptr.h" |
-#include "cc/layers/scrollbar_theme_painter.h" |
- |
-namespace WebKit { class WebScrollbarThemePainter; } |
- |
-namespace webkit { |
- |
-class WebToCCScrollbarThemePainterAdapter : public cc::ScrollbarThemePainter { |
- public: |
- static scoped_ptr<WebToCCScrollbarThemePainterAdapter> Create( |
- scoped_ptr<WebKit::WebScrollbarThemePainter> web_painter) { |
- return make_scoped_ptr( |
- new WebToCCScrollbarThemePainterAdapter(web_painter.Pass())); |
- } |
- virtual ~WebToCCScrollbarThemePainterAdapter(); |
- |
- virtual void PaintScrollbarBackground(SkCanvas* canvas, |
- gfx::Rect rect) OVERRIDE; |
- virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintBackButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintForwardButtonStart(SkCanvas* canvas, gfx::Rect rect) |
- OVERRIDE; |
- virtual void PaintForwardButtonEnd(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintTickmarks(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- virtual void PaintThumb(SkCanvas* canvas, gfx::Rect rect) OVERRIDE; |
- |
- private: |
- explicit WebToCCScrollbarThemePainterAdapter( |
- scoped_ptr<WebKit::WebScrollbarThemePainter> web_painter); |
- |
- scoped_ptr<WebKit::WebScrollbarThemePainter> painter_; |
- |
- DISALLOW_COPY_AND_ASSIGN(WebToCCScrollbarThemePainterAdapter); |
-}; |
- |
-} // namespace webkit |
- |
-#endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TO_CCSCROLLBAR_THEME_PAINTER_ADAPTER_H_ |