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 | 5 |
6 #ifndef ScrollbarLayerChromium_h | 6 #ifndef ScrollbarLayerChromium_h |
7 #define ScrollbarLayerChromium_h | 7 #define ScrollbarLayerChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 #include "LayerChromium.h" | 11 #include "LayerChromium.h" |
12 #include "LayerTextureUpdater.h" | 12 #include "LayerTextureUpdater.h" |
13 #include <public/WebScrollbar.h> | 13 #include <public/WebScrollbar.h> |
14 #include <public/WebScrollbarThemeGeometry.h> | 14 #include <public/WebScrollbarThemeGeometry.h> |
15 #include <public/WebScrollbarThemePainter.h> | 15 #include <public/WebScrollbarThemePainter.h> |
16 | 16 |
17 namespace WebCore { | 17 namespace cc { |
18 | 18 |
19 class Scrollbar; | 19 class Scrollbar; |
20 class ScrollbarThemeComposite; | 20 class ScrollbarThemeComposite; |
21 class CCTextureUpdateQueue; | 21 class CCTextureUpdateQueue; |
22 | 22 |
23 class ScrollbarLayerChromium : public LayerChromium { | 23 class ScrollbarLayerChromium : public LayerChromium { |
24 public: | 24 public: |
25 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | 25 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; |
26 static PassRefPtr<ScrollbarLayerChromium> create(PassOwnPtr<WebKit::WebScrol
lbar>, WebKit::WebScrollbarThemePainter, PassOwnPtr<WebKit::WebScrollbarThemeGeo
metry>, int scrollLayerId); | 26 static PassRefPtr<ScrollbarLayerChromium> create(PassOwnPtr<WebKit::WebScrol
lbar>, WebKit::WebScrollbarThemePainter, PassOwnPtr<WebKit::WebScrollbarThemeGeo
metry>, int scrollLayerId); |
27 | 27 |
(...skipping 29 matching lines...) Expand all Loading... |
57 // All the parts of the scrollbar except the thumb | 57 // All the parts of the scrollbar except the thumb |
58 OwnPtr<LayerTextureUpdater::Texture> m_backTrack; | 58 OwnPtr<LayerTextureUpdater::Texture> m_backTrack; |
59 OwnPtr<LayerTextureUpdater::Texture> m_foreTrack; | 59 OwnPtr<LayerTextureUpdater::Texture> m_foreTrack; |
60 OwnPtr<LayerTextureUpdater::Texture> m_thumb; | 60 OwnPtr<LayerTextureUpdater::Texture> m_thumb; |
61 }; | 61 }; |
62 | 62 |
63 } | 63 } |
64 #endif // USE(ACCELERATED_COMPOSITING) | 64 #endif // USE(ACCELERATED_COMPOSITING) |
65 | 65 |
66 #endif | 66 #endif |
OLD | NEW |