| 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 WebScrollbarLayerImpl_h | 5 #ifndef WebScrollbarLayerImpl_h |
| 6 #define WebScrollbarLayerImpl_h | 6 #define WebScrollbarLayerImpl_h |
| 7 | 7 |
| 8 #include <public/WebScrollbarLayer.h> | 8 #include <public/WebScrollbarLayer.h> |
| 9 #include <wtf/OwnPtr.h> | 9 #include <wtf/OwnPtr.h> |
| 10 #include <wtf/PassRefPtr.h> | |
| 11 | |
| 12 namespace WebCore { | |
| 13 class ScrollbarLayerChromium; | |
| 14 } | |
| 15 | 10 |
| 16 namespace WebKit { | 11 namespace WebKit { |
| 17 class WebLayerImpl; | 12 class WebLayerImpl; |
| 18 | 13 |
| 19 class WebScrollbarLayerImpl : public WebScrollbarLayer { | 14 class WebScrollbarLayerImpl : public WebScrollbarLayer { |
| 20 public: | 15 public: |
| 21 explicit WebScrollbarLayerImpl(PassRefPtr<WebCore::ScrollbarLayerChromium>); | 16 WebScrollbarLayerImpl(WebScrollbar*, WebScrollbarThemePainter, WebScrollbarT
hemeGeometry*); |
| 22 virtual ~WebScrollbarLayerImpl(); | 17 virtual ~WebScrollbarLayerImpl(); |
| 23 | 18 |
| 24 // WebScrollbarLayer implementation. | 19 // WebScrollbarLayer implementation. |
| 25 virtual WebLayer* layer() OVERRIDE; | 20 virtual WebLayer* layer() OVERRIDE; |
| 26 virtual void setScrollLayer(WebLayer*) OVERRIDE; | 21 virtual void setScrollLayer(WebLayer*) OVERRIDE; |
| 27 | 22 |
| 28 private: | 23 private: |
| 29 OwnPtr<WebLayerImpl> m_layer; | 24 OwnPtr<WebLayerImpl> m_layer; |
| 30 }; | 25 }; |
| 31 | 26 |
| 32 } | 27 } |
| 33 | 28 |
| 34 #endif // WebScrollbarLayerImpl_h | 29 #endif // WebScrollbarLayerImpl_h |
| OLD | NEW |