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 #include "cc/caching_bitmap_content_layer_updater.h" | 9 #include "cc/caching_bitmap_content_layer_updater.h" |
| 10 #include "cc/cc_export.h" |
10 #include "cc/contents_scaling_layer.h" | 11 #include "cc/contents_scaling_layer.h" |
11 #include <public/WebScrollbar.h> | 12 #include <public/WebScrollbar.h> |
12 #include <public/WebScrollbarThemeGeometry.h> | 13 #include <public/WebScrollbarThemeGeometry.h> |
13 #include <public/WebScrollbarThemePainter.h> | 14 #include <public/WebScrollbarThemePainter.h> |
14 | 15 |
15 namespace cc { | 16 namespace cc { |
16 | 17 |
17 class ResourceUpdateQueue; | 18 class ResourceUpdateQueue; |
18 class Scrollbar; | 19 class Scrollbar; |
19 class ScrollbarThemeComposite; | 20 class ScrollbarThemeComposite; |
20 | 21 |
21 class ScrollbarLayer : public ContentsScalingLayer { | 22 class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer { |
22 public: | 23 public: |
23 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; | 24 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
24 | 25 |
25 static scoped_refptr<ScrollbarLayer> create(scoped_ptr<WebKit::WebScrollbar>
, WebKit::WebScrollbarThemePainter, scoped_ptr<WebKit::WebScrollbarThemeGeometry
>, int scrollLayerId); | 26 static scoped_refptr<ScrollbarLayer> create(scoped_ptr<WebKit::WebScrollbar>
, WebKit::WebScrollbarThemePainter, scoped_ptr<WebKit::WebScrollbarThemeGeometry
>, int scrollLayerId); |
26 | 27 |
27 // Layer interface | 28 // Layer interface |
28 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE; | 29 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE; |
29 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; | 30 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) OVERRIDE; |
30 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; | 31 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; |
31 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 32 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
(...skipping 24 matching lines...) Expand all Loading... |
56 scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater; | 57 scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater; |
57 | 58 |
58 // All the parts of the scrollbar except the thumb | 59 // All the parts of the scrollbar except the thumb |
59 scoped_ptr<LayerUpdater::Resource> m_backTrack; | 60 scoped_ptr<LayerUpdater::Resource> m_backTrack; |
60 scoped_ptr<LayerUpdater::Resource> m_foreTrack; | 61 scoped_ptr<LayerUpdater::Resource> m_foreTrack; |
61 scoped_ptr<LayerUpdater::Resource> m_thumb; | 62 scoped_ptr<LayerUpdater::Resource> m_thumb; |
62 }; | 63 }; |
63 | 64 |
64 } | 65 } |
65 #endif | 66 #endif |
OLD | NEW |