| 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 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SCROLLBAR_LAYER_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SCROLLBAR_LAYER_IMPL_H_ |
| 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SCROLLBAR_LAYER_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SCROLLBAR_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/public/platform/WebScrollbar.h" |
| 9 #include "third_party/WebKit/public/platform/WebScrollbarLayer.h" | 10 #include "third_party/WebKit/public/platform/WebScrollbarLayer.h" |
| 10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" | 11 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" |
| 11 | 12 |
| 12 namespace WebKit { | 13 namespace WebKit { |
| 13 class WebScrollbar; | |
| 14 class WebScrollbarThemeGeometry; | 14 class WebScrollbarThemeGeometry; |
| 15 class WebScrollbarThemePainter; | 15 class WebScrollbarThemePainter; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace webkit { | 18 namespace webkit { |
| 19 | 19 |
| 20 class WebLayerImpl; | 20 class WebLayerImpl; |
| 21 | 21 |
| 22 class WebScrollbarLayerImpl : public WebKit::WebScrollbarLayer { | 22 class WebScrollbarLayerImpl : public WebKit::WebScrollbarLayer { |
| 23 public: | 23 public: |
| 24 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl( | 24 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl( |
| 25 WebKit::WebScrollbar* scrollbar, | 25 WebKit::WebScrollbar* scrollbar, |
| 26 WebKit::WebScrollbarThemePainter painter, | 26 WebKit::WebScrollbarThemePainter painter, |
| 27 WebKit::WebScrollbarThemeGeometry* geometry); | 27 WebKit::WebScrollbarThemeGeometry* geometry); |
| 28 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl( |
| 29 WebKit::WebScrollbar::Orientation orientation, |
| 30 int thumb_thickness); |
| 28 virtual ~WebScrollbarLayerImpl(); | 31 virtual ~WebScrollbarLayerImpl(); |
| 29 | 32 |
| 30 // WebKit::WebScrollbarLayer implementation. | 33 // WebKit::WebScrollbarLayer implementation. |
| 31 virtual WebKit::WebLayer* layer(); | 34 virtual WebKit::WebLayer* layer(); |
| 32 virtual void setScrollLayer(WebKit::WebLayer* layer); | 35 virtual void setScrollLayer(WebKit::WebLayer* layer); |
| 33 | 36 |
| 34 private: | 37 private: |
| 35 scoped_ptr<WebLayerImpl> layer_; | 38 scoped_ptr<WebLayerImpl> layer_; |
| 36 | 39 |
| 37 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl); | 40 DISALLOW_COPY_AND_ASSIGN(WebScrollbarLayerImpl); |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 } // namespace webkit | 43 } // namespace webkit |
| 41 | 44 |
| 42 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SCROLLBAR_LAYER_IMPL_H_ | 45 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_SCROLLBAR_LAYER_IMPL_H_ |
| OLD | NEW |