Home | History | Annotate | Download | only in layout

Lines Matching defs:host_

18     host_.reset(new View);
21 scoped_ptr<View> host_;
29 EXPECT_EQ(gfx::Size(20, 20), layout_->GetPreferredSize(host_.get()));
35 host_->AddChildView(v1);
37 host_->AddChildView(v2);
38 EXPECT_EQ(gfx::Size(20, 20), layout_->GetPreferredSize(host_.get()));
39 host_->SetBounds(0, 0, 20, 20);
40 layout_->Layout(host_.get());
48 host_->AddChildView(v1);
50 host_->AddChildView(v2);
51 EXPECT_EQ(gfx::Size(20, 20), layout_->GetPreferredSize(host_.get()));
52 host_->SetBounds(0, 0, 20, 20);
53 layout_->Layout(host_.get());
61 host_->AddChildView(v1);
63 host_->AddChildView(v2);
64 EXPECT_EQ(gfx::Size(42, 34), layout_->GetPreferredSize(host_.get()));
65 host_->SetBounds(0, 0, 100, 100);
66 layout_->Layout(host_.get());
74 host_->AddChildView(v1);
76 host_->AddChildView(v2);
77 host_->SetBounds(0, 0, 10, 10);
78 layout_->Layout(host_.get());
86 host_->AddChildView(childView);
87 host_->SetBounds(0, 0, 10, 10);
88 layout_->Layout(host_.get());
96 host_->AddChildView(v1);
98 host_->AddChildView(v2);
99 EXPECT_EQ(gfx::Size(30, 30), layout_->GetPreferredSize(host_.get()));
100 host_->SetBounds(0, 0, 30, 30);
101 layout_->Layout(host_.get());
110 host_->AddChildView(v1);
112 host_->AddChildView(v2);
113 EXPECT_EQ(gfx::Size(60, 40), layout_->GetPreferredSize(host_.get()));
115 host_->SetBounds(0, 0, 100, 40);
116 layout_->Layout(host_.get());
124 host_->AddChildView(v1);
126 host_->AddChildView(v2);
127 EXPECT_EQ(gfx::Size(20, 50), layout_->GetPreferredSize(host_.get()));
129 host_->SetBounds(0, 0, 20, 50);
130 layout_->Layout(host_.get());
134 EXPECT_EQ(110, layout_->GetPreferredHeightForWidth(host_.get(), 50));
141 host_->RemoveAllChildViews(true);
142 host_->SetLayoutManager(new BoxLayout(orientation, 0, 0, 5));
144 host_->AddChildView(v1);
146 host_->AddChildView(v2);
147 host_->SizeToPreferredSize();
148 host_->Layout();
150 EXPECT_EQ(v2->GetPreferredSize().width(), host_->bounds().width()) << i;
151 EXPECT_EQ(v2->GetPreferredSize().height(), host_->bounds().height()) << i;