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

Unified Diff: cc/scrollbar_geometry_fixed_thumb.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/scrollbar_geometry_fixed_thumb.cc
diff --git a/cc/scrollbar_geometry_fixed_thumb.cc b/cc/scrollbar_geometry_fixed_thumb.cc
index 803aa1730a3de4a62605b13ba3812d443868244f..20a5fd68e1294c4e58e493e8b2f2b272540e3145 100644
--- a/cc/scrollbar_geometry_fixed_thumb.cc
+++ b/cc/scrollbar_geometry_fixed_thumb.cc
@@ -16,18 +16,18 @@ using WebKit::WebScrollbarThemeGeometry;
namespace cc {
-scoped_ptr<CCScrollbarGeometryFixedThumb> CCScrollbarGeometryFixedThumb::create(scoped_ptr<WebScrollbarThemeGeometry> geometry)
+scoped_ptr<ScrollbarGeometryFixedThumb> ScrollbarGeometryFixedThumb::create(scoped_ptr<WebScrollbarThemeGeometry> geometry)
{
- return make_scoped_ptr(new CCScrollbarGeometryFixedThumb(geometry.Pass()));
+ return make_scoped_ptr(new ScrollbarGeometryFixedThumb(geometry.Pass()));
}
-CCScrollbarGeometryFixedThumb::~CCScrollbarGeometryFixedThumb()
+ScrollbarGeometryFixedThumb::~ScrollbarGeometryFixedThumb()
{
}
-void CCScrollbarGeometryFixedThumb::update(WebScrollbar* scrollbar)
+void ScrollbarGeometryFixedThumb::update(WebScrollbar* scrollbar)
{
- int length = CCScrollbarGeometryStub::thumbLength(scrollbar);
+ int length = ScrollbarGeometryStub::thumbLength(scrollbar);
if (scrollbar->orientation() == WebScrollbar::Horizontal)
m_thumbSize = IntSize(length, scrollbar->size().height);
@@ -35,21 +35,21 @@ void CCScrollbarGeometryFixedThumb::update(WebScrollbar* scrollbar)
m_thumbSize = IntSize(scrollbar->size().width, length);
}
-WebScrollbarThemeGeometry* CCScrollbarGeometryFixedThumb::clone() const
+WebScrollbarThemeGeometry* ScrollbarGeometryFixedThumb::clone() const
{
- CCScrollbarGeometryFixedThumb* geometry = new CCScrollbarGeometryFixedThumb(make_scoped_ptr(CCScrollbarGeometryStub::clone()));
+ ScrollbarGeometryFixedThumb* geometry = new ScrollbarGeometryFixedThumb(make_scoped_ptr(ScrollbarGeometryStub::clone()));
geometry->m_thumbSize = m_thumbSize;
return geometry;
}
-int CCScrollbarGeometryFixedThumb::thumbLength(WebScrollbar* scrollbar)
+int ScrollbarGeometryFixedThumb::thumbLength(WebScrollbar* scrollbar)
{
if (scrollbar->orientation() == WebScrollbar::Horizontal)
return m_thumbSize.width();
return m_thumbSize.height();
}
-int CCScrollbarGeometryFixedThumb::thumbPosition(WebScrollbar* scrollbar)
+int ScrollbarGeometryFixedThumb::thumbPosition(WebScrollbar* scrollbar)
{
if (scrollbar->enabled()) {
float size = scrollbar->maximum();
@@ -61,7 +61,7 @@ int CCScrollbarGeometryFixedThumb::thumbPosition(WebScrollbar* scrollbar)
}
return 0;
}
-void CCScrollbarGeometryFixedThumb::splitTrack(WebScrollbar* scrollbar, const WebRect& unconstrainedTrackRect, WebRect& beforeThumbRect, WebRect& thumbRect, WebRect& afterThumbRect)
+void ScrollbarGeometryFixedThumb::splitTrack(WebScrollbar* scrollbar, const WebRect& unconstrainedTrackRect, WebRect& beforeThumbRect, WebRect& thumbRect, WebRect& afterThumbRect)
{
// This is a reimplementation of ScrollbarThemeComposite::splitTrack.
// Because the WebScrollbarThemeGeometry functions call down to native
@@ -86,8 +86,8 @@ void CCScrollbarGeometryFixedThumb::splitTrack(WebScrollbar* scrollbar, const We
}
}
-CCScrollbarGeometryFixedThumb::CCScrollbarGeometryFixedThumb(scoped_ptr<WebScrollbarThemeGeometry> geometry)
- : CCScrollbarGeometryStub(geometry.Pass())
+ScrollbarGeometryFixedThumb::ScrollbarGeometryFixedThumb(scoped_ptr<WebScrollbarThemeGeometry> geometry)
+ : ScrollbarGeometryStub(geometry.Pass())
{
}

Powered by Google App Engine
This is Rietveld 408576698