Home | History | Annotate | Download | only in views

Lines Matching refs:c1

3073   View* c1 = new View;
3074 c1->SetPaintToLayer(true);
3075 content->AddChildView(c1);
3080 ui::Layer* parent_layer = c1->layer()->parent();
3083 EXPECT_EQ(c1->layer(), parent_layer->children()[0]);
3086 // Move c1 to the front. The layers should have moved too.
3087 content->ReorderChildView(c1, -1);
3088 EXPECT_EQ(c1->layer(), parent_layer->children()[1]);
3096 scoped_ptr<View> c1(new View);
3097 c1->SetPaintToLayer(true);
3098 EXPECT_TRUE(c1->layer());
3099 content->AddChildView(c1.get());
3101 scoped_ptr<ui::Layer> layer(c1->AcquireLayer());
3102 EXPECT_EQ(layer.get(), c1->layer());
3104 scoped_ptr<ui::Layer> layer2(c1->RecreateLayer());
3105 EXPECT_NE(c1->layer(), layer2.get());
3108 c1.reset();