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