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

Side by Side Diff: webkit/compositor_bindings/WebScrollbarLayerImpl.cpp

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 unified diff | Download patch | Annotate | Revision Log
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 #include "config.h" 5 #include "config.h"
6 #include "WebScrollbarLayerImpl.h" 6 #include "WebScrollbarLayerImpl.h"
7 7
8 #include "WebLayerImpl.h" 8 #include "WebLayerImpl.h"
9 #include "cc/scrollbar_layer.h" 9 #include "cc/scrollbar_layer.h"
10 10
11 using cc::ScrollbarLayerChromium; 11 using cc::ScrollbarLayer;
12 12
13 namespace WebKit { 13 namespace WebKit {
14 14
15 WebScrollbarLayer* WebScrollbarLayer::create(WebScrollbar* scrollbar, WebScrollb arThemePainter painter, WebScrollbarThemeGeometry* geometry) 15 WebScrollbarLayer* WebScrollbarLayer::create(WebScrollbar* scrollbar, WebScrollb arThemePainter painter, WebScrollbarThemeGeometry* geometry)
16 { 16 {
17 return new WebScrollbarLayerImpl(scrollbar, painter, geometry); 17 return new WebScrollbarLayerImpl(scrollbar, painter, geometry);
18 } 18 }
19 19
20 20
21 WebScrollbarLayerImpl::WebScrollbarLayerImpl(WebScrollbar* scrollbar, WebScrollb arThemePainter painter, WebScrollbarThemeGeometry* geometry) 21 WebScrollbarLayerImpl::WebScrollbarLayerImpl(WebScrollbar* scrollbar, WebScrollb arThemePainter painter, WebScrollbarThemeGeometry* geometry)
22 : m_layer(new WebLayerImpl(ScrollbarLayerChromium::create(make_scoped_ptr(sc rollbar), painter, make_scoped_ptr(geometry), 0))) 22 : m_layer(new WebLayerImpl(ScrollbarLayer::create(make_scoped_ptr(scrollbar) , painter, make_scoped_ptr(geometry), 0)))
23 { 23 {
24 } 24 }
25 25
26 WebScrollbarLayerImpl::~WebScrollbarLayerImpl() 26 WebScrollbarLayerImpl::~WebScrollbarLayerImpl()
27 { 27 {
28 } 28 }
29 29
30 WebLayer* WebScrollbarLayerImpl::layer() 30 WebLayer* WebScrollbarLayerImpl::layer()
31 { 31 {
32 return m_layer.get(); 32 return m_layer.get();
33 } 33 }
34 34
35 void WebScrollbarLayerImpl::setScrollLayer(WebLayer* layer) 35 void WebScrollbarLayerImpl::setScrollLayer(WebLayer* layer)
36 { 36 {
37 int id = layer ? static_cast<WebLayerImpl*>(layer)->layer()->id() : 0; 37 int id = layer ? static_cast<WebLayerImpl*>(layer)->layer()->id() : 0;
38 static_cast<ScrollbarLayerChromium*>(m_layer->layer())->setScrollLayerId(id) ; 38 static_cast<ScrollbarLayer*>(m_layer->layer())->setScrollLayerId(id);
39 } 39 }
40 40
41 41
42 42
43 } // namespace WebKit 43 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698