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

Side by Side Diff: cc/scrollbar_layer_impl.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_layer.h ('k') | cc/settings.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 #ifndef CCScrollbarLayerImpl_h 5 #ifndef CCScrollbarLayerImpl_h
6 #define CCScrollbarLayerImpl_h 6 #define CCScrollbarLayerImpl_h
7 7
8 #include "cc/cc_export.h"
8 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
9 #include "cc/scrollbar_geometry_fixed_thumb.h" 10 #include "cc/scrollbar_geometry_fixed_thumb.h"
10 #include <public/WebRect.h> 11 #include <public/WebRect.h>
11 #include <public/WebScrollbar.h> 12 #include <public/WebScrollbar.h>
12 #include <public/WebVector.h> 13 #include <public/WebVector.h>
13 14
14 namespace cc { 15 namespace cc {
15 16
16 class ScrollView; 17 class ScrollView;
17 18
18 class ScrollbarLayerImpl : public LayerImpl { 19 class CC_EXPORT ScrollbarLayerImpl : public LayerImpl {
19 public: 20 public:
20 static scoped_ptr<ScrollbarLayerImpl> create(int id); 21 static scoped_ptr<ScrollbarLayerImpl> create(int id);
21 virtual ~ScrollbarLayerImpl(); 22 virtual ~ScrollbarLayerImpl();
22 23
23 ScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry.g et(); } 24 ScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry.g et(); }
24 void setScrollbarGeometry(scoped_ptr<ScrollbarGeometryFixedThumb>); 25 void setScrollbarGeometry(scoped_ptr<ScrollbarGeometryFixedThumb>);
25 void setScrollbarData(WebKit::WebScrollbar*); 26 void setScrollbarData(WebKit::WebScrollbar*);
26 27
27 void setBackTrackResourceId(ResourceProvider::ResourceId id) { m_backTrackRe sourceId = id; } 28 void setBackTrackResourceId(ResourceProvider::ResourceId id) { m_backTrackRe sourceId = id; }
28 void setForeTrackResourceId(ResourceProvider::ResourceId id) { m_foreTrackRe sourceId = id; } 29 void setForeTrackResourceId(ResourceProvider::ResourceId id) { m_foreTrackRe sourceId = id; }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 bool m_isScrollableAreaActive; 103 bool m_isScrollableAreaActive;
103 bool m_isScrollViewScrollbar; 104 bool m_isScrollViewScrollbar;
104 bool m_enabled; 105 bool m_enabled;
105 bool m_isCustomScrollbar; 106 bool m_isCustomScrollbar;
106 bool m_isOverlayScrollbar; 107 bool m_isOverlayScrollbar;
107 }; 108 };
108 109
109 } 110 }
110 #endif 111 #endif
OLDNEW
« no previous file with comments | « cc/scrollbar_layer.h ('k') | cc/settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698