diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 20:58:10 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 20:58:10 +0000 |
commit | 184fac5add06d5f4670fa6be4a4d3b39232d51bb (patch) | |
tree | 7efc1d20146fcafdbe408fa67292117c41e9393f /cc/scrollbar_geometry_fixed_thumb.cc | |
parent | fb7ffba75e81a79436434bab0715be0d6e67bc07 (diff) | |
download | chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.zip chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.tar.gz chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.tar.bz2 |
cc: Rename cc classes and members to match filenames
BUG=155413
Review URL: https://codereview.chromium.org/11189043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scrollbar_geometry_fixed_thumb.cc')
-rw-r--r-- | cc/scrollbar_geometry_fixed_thumb.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cc/scrollbar_geometry_fixed_thumb.cc b/cc/scrollbar_geometry_fixed_thumb.cc index 803aa17..20a5fd6 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()) { } |