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

Side by Side Diff: cc/CCScrollbarLayerImpl.h

Issue 10879109: Update libcc / bindings snapshot to WebKit r126830 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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/CCScrollbarGeometryStub.cpp ('k') | cc/CCScrollbarLayerImpl.cpp » ('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 #if USE(ACCELERATED_COMPOSITING) 8 #if USE(ACCELERATED_COMPOSITING)
9 9
10 #include "CCLayerImpl.h" 10 #include "CCLayerImpl.h"
11 #include "CCScrollbarGeometryFixedThumb.h"
11 #include <public/WebRect.h> 12 #include <public/WebRect.h>
12 #include <public/WebScrollbar.h> 13 #include <public/WebScrollbar.h>
13 #include <public/WebScrollbarThemeGeometry.h>
14 #include <public/WebVector.h> 14 #include <public/WebVector.h>
15 15
16 namespace WebCore { 16 namespace WebCore {
17 17
18 class ScrollView; 18 class ScrollView;
19 19
20 class CCScrollbarLayerImpl : public CCLayerImpl { 20 class CCScrollbarLayerImpl : public CCLayerImpl {
21 public: 21 public:
22 static PassOwnPtr<CCScrollbarLayerImpl> create(int id); 22 static PassOwnPtr<CCScrollbarLayerImpl> create(int id);
23 23
24 WebKit::WebScrollbarThemeGeometry* scrollbarGeometry() const { return m_geom etry.get(); } 24 CCScrollbarGeometryFixedThumb* scrollbarGeometry() const { return m_geometry .get(); }
25 void setScrollbarGeometry(PassOwnPtr<WebKit::WebScrollbarThemeGeometry>); 25 void setScrollbarGeometry(PassOwnPtr<CCScrollbarGeometryFixedThumb>);
26 void setScrollbarData(const WebKit::WebScrollbar*); 26 void setScrollbarData(WebKit::WebScrollbar*);
27 27
28 void setBackTrackResourceId(CCResourceProvider::ResourceId id) { m_backTrack ResourceId = id; } 28 void setBackTrackResourceId(CCResourceProvider::ResourceId id) { m_backTrack ResourceId = id; }
29 void setForeTrackResourceId(CCResourceProvider::ResourceId id) { m_foreTrack ResourceId = id; } 29 void setForeTrackResourceId(CCResourceProvider::ResourceId id) { m_foreTrack ResourceId = id; }
30 void setThumbResourceId(CCResourceProvider::ResourceId id) { m_thumbResource Id = id; } 30 void setThumbResourceId(CCResourceProvider::ResourceId id) { m_thumbResource Id = id; }
31 31
32 float currentPos() const { return m_currentPos; } 32 float currentPos() const { return m_currentPos; }
33 void setCurrentPos(float currentPos) { m_currentPos = currentPos; } 33 void setCurrentPos(float currentPos) { m_currentPos = currentPos; }
34 34
35 int totalSize() const { return m_totalSize; } 35 int totalSize() const { return m_totalSize; }
36 void setTotalSize(int totalSize) { m_totalSize = totalSize; } 36 void setTotalSize(int totalSize) { m_totalSize = totalSize; }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 CCScrollbarLayerImpl* m_owner; 75 CCScrollbarLayerImpl* m_owner;
76 76
77 }; 77 };
78 78
79 CCScrollbar m_scrollbar; 79 CCScrollbar m_scrollbar;
80 80
81 CCResourceProvider::ResourceId m_backTrackResourceId; 81 CCResourceProvider::ResourceId m_backTrackResourceId;
82 CCResourceProvider::ResourceId m_foreTrackResourceId; 82 CCResourceProvider::ResourceId m_foreTrackResourceId;
83 CCResourceProvider::ResourceId m_thumbResourceId; 83 CCResourceProvider::ResourceId m_thumbResourceId;
84 84
85 OwnPtr<WebKit::WebScrollbarThemeGeometry> m_geometry; 85 OwnPtr<CCScrollbarGeometryFixedThumb> m_geometry;
86 86
87 // Data to implement CCScrollbar 87 // Data to implement CCScrollbar
88 WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle; 88 WebKit::WebScrollbar::ScrollbarOverlayStyle m_scrollbarOverlayStyle;
89 WebKit::WebVector<WebKit::WebRect> m_tickmarks; 89 WebKit::WebVector<WebKit::WebRect> m_tickmarks;
90 WebKit::WebScrollbar::Orientation m_orientation; 90 WebKit::WebScrollbar::Orientation m_orientation;
91 WebKit::WebScrollbar::ScrollbarControlSize m_controlSize; 91 WebKit::WebScrollbar::ScrollbarControlSize m_controlSize;
92 WebKit::WebScrollbar::ScrollbarPart m_pressedPart; 92 WebKit::WebScrollbar::ScrollbarPart m_pressedPart;
93 WebKit::WebScrollbar::ScrollbarPart m_hoveredPart; 93 WebKit::WebScrollbar::ScrollbarPart m_hoveredPart;
94 94
95 float m_currentPos; 95 float m_currentPos;
96 int m_totalSize; 96 int m_totalSize;
97 int m_maximum; 97 int m_maximum;
98 98
99 bool m_isScrollableAreaActive; 99 bool m_isScrollableAreaActive;
100 bool m_isScrollViewScrollbar; 100 bool m_isScrollViewScrollbar;
101 bool m_enabled; 101 bool m_enabled;
102 bool m_isCustomScrollbar; 102 bool m_isCustomScrollbar;
103 bool m_isOverlayScrollbar; 103 bool m_isOverlayScrollbar;
104 }; 104 };
105 105
106 } 106 }
107 #endif // USE(ACCELERATED_COMPOSITING) 107 #endif // USE(ACCELERATED_COMPOSITING)
108 108
109 #endif 109 #endif
OLDNEW
« no previous file with comments | « cc/CCScrollbarGeometryStub.cpp ('k') | cc/CCScrollbarLayerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698