Lines Matching refs:child2
275 Window child2(NULL);
276 child2.Init(ui::LAYER_NOT_DRAWN);
279 child1.AddChild(&child2);
283 EXPECT_TRUE(parent.Contains(&child2));
287 EXPECT_FALSE(child2.Contains(&child1));
715 Window child2(NULL);
716 child2.Init(ui::LAYER_NOT_DRAWN);
719 parent.AddChild(&child2);
722 EXPECT_EQ(&child2, parent.children()[1]);
725 EXPECT_EQ(child2.layer(), parent.layer()->children()[1]);
730 EXPECT_EQ(&child2, parent.children()[0]);
733 EXPECT_EQ(child2.layer(), parent.layer()->children()[0]);
743 Window child2(NULL);
744 child2.Init(ui::LAYER_NOT_DRAWN);
745 child2.set_id(2);
751 parent.AddChild(&child2);
755 parent.StackChildBelow(&child1, &child2);
758 parent.StackChildBelow(&child2, &child1);
761 parent.StackChildBelow(&child3, &child2);
774 Window child2(NULL);
775 child2.Init(ui::LAYER_NOT_DRAWN);
780 parent.AddChild(&child2);
783 parent.StackChildAbove(&child1, &child2);
785 EXPECT_EQ(&child2, parent.children()[0]);
788 EXPECT_EQ(child2.layer(), parent.layer()->children()[0]);
794 parent.StackChildAbove(&child2, &child1);
797 EXPECT_EQ(&child2, parent.children()[1]);
801 EXPECT_EQ(child2.layer(), parent.layer()->children()[1]);
807 EXPECT_EQ(&child2, parent.children()[0]);
811 EXPECT_EQ(child2.layer(), parent.layer()->children()[0]);
816 parent.StackChildAbove(&child1, &child2);
818 EXPECT_EQ(&child2, parent.children()[0]);
822 EXPECT_EQ(child2.layer(), parent.layer()->children()[0]);