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