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

Unified Diff: cc/scrollbar_layer_unittest.cc

Issue 11144034: cc: Remove wtf includes for scrollbar layer classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « cc/scrollbar_layer_impl.cc ('k') | cc/test/fake_web_scrollbar_theme_geometry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_layer_unittest.cc
diff --git a/cc/scrollbar_layer_unittest.cc b/cc/scrollbar_layer_unittest.cc
index 577daed6427317dad3c2960b8d43c97faf736fda..9586fdd1bf76d1d99091f0a9355347eff96b1370 100644
--- a/cc/scrollbar_layer_unittest.cc
+++ b/cc/scrollbar_layer_unittest.cc
@@ -22,7 +22,7 @@ namespace {
class FakeWebScrollbar : public WebKit::WebScrollbar {
public:
- static PassOwnPtr<FakeWebScrollbar> create() { return adoptPtr(new FakeWebScrollbar()); }
+ static scoped_ptr<FakeWebScrollbar> create() { return make_scoped_ptr(new FakeWebScrollbar()); }
// WebScrollbar implementation
virtual bool isOverlay() const OVERRIDE { return false; }
@@ -50,10 +50,10 @@ TEST(ScrollbarLayerChromiumTest, resolveScrollLayerPointer)
WebKit::WebScrollbarThemePainter painter;
{
- OwnPtr<WebKit::WebScrollbar> scrollbar(FakeWebScrollbar::create());
+ scoped_ptr<WebKit::WebScrollbar> scrollbar(FakeWebScrollbar::create());
scoped_refptr<LayerChromium> layerTreeRoot = LayerChromium::create();
scoped_refptr<LayerChromium> child1 = LayerChromium::create();
- scoped_refptr<LayerChromium> child2 = ScrollbarLayerChromium::create(scrollbar.release(), painter, WebKit::FakeWebScrollbarThemeGeometry::create(), child1->id());
+ scoped_refptr<LayerChromium> child2 = ScrollbarLayerChromium::create(scrollbar.Pass(), painter, WebKit::FakeWebScrollbarThemeGeometry::create(), child1->id());
layerTreeRoot->addChild(child1);
layerTreeRoot->addChild(child2);
@@ -67,10 +67,10 @@ TEST(ScrollbarLayerChromiumTest, resolveScrollLayerPointer)
}
{ // another traverse order
- OwnPtr<WebKit::WebScrollbar> scrollbar(FakeWebScrollbar::create());
+ scoped_ptr<WebKit::WebScrollbar> scrollbar(FakeWebScrollbar::create());
scoped_refptr<LayerChromium> layerTreeRoot = LayerChromium::create();
scoped_refptr<LayerChromium> child2 = LayerChromium::create();
- scoped_refptr<LayerChromium> child1 = ScrollbarLayerChromium::create(scrollbar.release(), painter, WebKit::FakeWebScrollbarThemeGeometry::create(), child2->id());
+ scoped_refptr<LayerChromium> child1 = ScrollbarLayerChromium::create(scrollbar.Pass(), painter, WebKit::FakeWebScrollbarThemeGeometry::create(), child2->id());
layerTreeRoot->addChild(child1);
layerTreeRoot->addChild(child2);
@@ -90,10 +90,10 @@ TEST(ScrollbarLayerChromiumTest, scrollOffsetSynchronization)
WebKit::WebScrollbarThemePainter painter;
- OwnPtr<WebKit::WebScrollbar> scrollbar(FakeWebScrollbar::create());
+ scoped_ptr<WebKit::WebScrollbar> scrollbar(FakeWebScrollbar::create());
scoped_refptr<LayerChromium> layerTreeRoot = LayerChromium::create();
scoped_refptr<LayerChromium> contentLayer = LayerChromium::create();
- scoped_refptr<LayerChromium> scrollbarLayer = ScrollbarLayerChromium::create(scrollbar.release(), painter, WebKit::FakeWebScrollbarThemeGeometry::create(), layerTreeRoot->id());
+ scoped_refptr<LayerChromium> scrollbarLayer = ScrollbarLayerChromium::create(scrollbar.Pass(), painter, WebKit::FakeWebScrollbarThemeGeometry::create(), layerTreeRoot->id());
layerTreeRoot->addChild(contentLayer);
layerTreeRoot->addChild(scrollbarLayer);
« no previous file with comments | « cc/scrollbar_layer_impl.cc ('k') | cc/test/fake_web_scrollbar_theme_geometry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698