Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: cc/scrollbar_layer.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/scrollbar_geometry_stub.h ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/scrollbar_geometry_stub.h ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698