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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarLayer.h
" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarLayer.h
" |
10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
11 | 11 |
12 namespace WebKit { | 12 namespace WebKit { |
| 13 |
13 class WebLayerImpl; | 14 class WebLayerImpl; |
| 15 class WebScrollbar; |
| 16 class WebScrollbarThemeGeometry; |
| 17 class WebScrollbarThemePainter; |
14 | 18 |
15 class WebScrollbarLayerImpl : public WebScrollbarLayer { | 19 class WebScrollbarLayerImpl : public WebScrollbarLayer { |
16 public: | 20 public: |
17 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl( | 21 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebScrollbarLayerImpl( |
18 WebScrollbar*, | 22 WebScrollbar*, |
19 WebScrollbarThemePainter, | 23 WebScrollbarThemePainter, |
20 WebScrollbarThemeGeometry*); | 24 WebScrollbarThemeGeometry*); |
21 virtual ~WebScrollbarLayerImpl(); | 25 virtual ~WebScrollbarLayerImpl(); |
22 | 26 |
23 // WebScrollbarLayer implementation. | 27 // WebScrollbarLayer implementation. |
24 virtual WebLayer* layer() OVERRIDE; | 28 virtual WebLayer* layer(); |
25 virtual void setScrollLayer(WebLayer*) OVERRIDE; | 29 virtual void setScrollLayer(WebLayer*); |
26 | 30 |
27 private: | 31 private: |
28 scoped_ptr<WebLayerImpl> layer_; | 32 scoped_ptr<WebLayerImpl> layer_; |
29 }; | 33 }; |
30 | 34 |
31 } | 35 } |
32 | 36 |
33 #endif // WebScrollbarLayerImpl_h | 37 #endif // WebScrollbarLayerImpl_h |
OLD | NEW |