Home | History | Annotate | Download | only in layout

Lines Matching refs:host_

18     host_.reset(new View);
21 scoped_ptr<View> host_;
28 host_->SetLayoutManager(layout);
29 EXPECT_EQ(gfx::Size(20, 20), layout->GetPreferredSize(host_.get()));
34 host_->SetLayoutManager(layout);
36 host_->AddChildView(v1);
38 host_->AddChildView(v2);
39 EXPECT_EQ(gfx::Size(20, 20), layout->GetPreferredSize(host_.get()));
40 host_->SetBounds(0, 0, 20, 20);
41 host_->Layout();
48 host_->SetLayoutManager(layout);
50 host_->AddChildView(v1);
52 host_->AddChildView(v2);
53 EXPECT_EQ(gfx::Size(20, 20), layout->GetPreferredSize(host_.get()));
54 host_->SetBounds(0, 0, 20, 20);
55 host_->Layout();
62 host_->SetLayoutManager(layout);
64 host_->AddChildView(v1);
66 host_->AddChildView(v2);
67 EXPECT_EQ(gfx::Size(40, 60), layout->GetPreferredSize(host_.get()));
68 host_->SetBounds(0, 0, 40, 60);
69 host_->Layout();
75 EXPECT_EQ(gfx::Size(50, 40), layout->GetPreferredSize(host_.get()));
76 host_->SetBounds(0, 0, 50, 40);
77 host_->Layout();
84 host_->SetLayoutManager(layout);
86 host_->AddChildView(v1);
88 host_->AddChildView(v2);
89 EXPECT_EQ(gfx::Size(42, 34), layout->GetPreferredSize(host_.get()));
90 host_->SetBounds(0, 0, 100, 100);
91 host_->Layout();
98 host_->SetLayoutManager(layout);
100 host_->AddChildView(v1);
102 host_->AddChildView(v2);
103 host_->SetBounds(0, 0, 10, 10);
107 host_->Layout();
113 host_->Layout();
118 host_->Layout();
123 host_->Layout();
130 host_->SetLayoutManager(layout);
132 host_->AddChildView(childView);
133 host_->SetBounds(0, 0, 10, 10);
134 host_->Layout();
140 host_->SetLayoutManager(layout);
143 host_->AddChildView(v1);
145 host_->AddChildView(v2);
146 EXPECT_EQ(gfx::Size(30, 30), layout->GetPreferredSize(host_.get()));
147 host_->SetBounds(0, 0, 30, 30);
148 host_->Layout();
154 host_->SetLayoutManager(layout);
156 host_->AddChildView(v1);
159 host_->AddChildView(v2);
160 EXPECT_EQ(gfx::Size(20, 50), layout->GetPreferredSize(host_.get()));
162 host_->SetBounds(0, 0, 20, 50);
163 host_->Layout();
167 EXPECT_EQ(110, layout->GetPreferredHeightForWidth(host_.get(), 50));
172 layout->GetPreferredSize(host_.get()).ToString());
174 host_->SetBounds(0, 0, 20, 30);
175 host_->Layout();
179 EXPECT_EQ(30, layout->GetPreferredHeightForWidth(host_.get(), 50));
186 host_->RemoveAllChildViews(true);
187 host_->SetLayoutManager(new BoxLayout(orientation, 0, 0, 5));
189 host_->AddChildView(v1);
191 host_->AddChildView(v2);
192 host_->SizeToPreferredSize();
193 host_->Layout();
195 EXPECT_EQ(v2->GetPreferredSize().width(), host_->bounds().width()) << i;
196 EXPECT_EQ(v2->GetPreferredSize().height(), host_->bounds().height()) << i;
206 host_->SetLayoutManager(layout);
209 host_->AddChildView(v1);
211 host_->AddChildView(v2);
213 host_->SetBounds(0, 0, 100, 40);
216 host_->Layout();
222 host_->Layout();
228 host_->Layout();
235 host_->Layout();
242 host_->SetLayoutManager(layout);
245 host_->AddChildView(v1);
247 host_->AddChildView(v2);
249 host_->SetBounds(0, 0, 40, 100);
252 host_->Layout();
258 host_->Layout();
264 host_->Layout();
271 host_->Layout();
278 host_->SetLayoutManager(layout);
281 host_->AddChildView(v1);
283 host_->AddChildView(v2);
285 host_->SetBounds(0, 0, 100, 60);
288 host_->Layout();
294 host_->Layout();
300 host_->Layout();
306 host_->Layout();
313 host_->Layout();
320 host_->SetLayoutManager(layout);
323 host_->AddChildView(v1);
325 host_->AddChildView(v2);
327 host_->SetBounds(0, 0, 60, 100);
330 host_->Layout();
336 host_->Layout();
342 host_->Layout();
348 host_->Layout();
355 host_->Layout();
362 host_->SetLayoutManager(layout);
366 host_->AddChildView(v1);
368 host_->AddChildView(v2);
370 host_->AddChildView(v3);
371 EXPECT_EQ(gfx::Size(100, 50), layout->GetPreferredSize(host_.get()));
373 host_->SetBounds(0, 0, 120, 50);
374 host_->Layout();
382 host_->SetLayoutManager(layout);
385 host_->AddChildView(v1);
387 host_->AddChildView(v2);
389 host_->AddChildView(v3);
391 host_->SetBounds(0, 0, 50, 130);
394 host_->Layout();
411 host_->Layout();
420 host_->Layout();
430 host_->Layout();
439 host_->SetLayoutManager(layout);
445 host_->AddChildView(view);
448 EXPECT_EQ(gfx::Size(50, 10), layout->GetPreferredSize(host_.get()));
450 host_->SetBounds(0, 0, 52, 10);
451 host_->Layout();
463 host_->SetLayoutManager(layout);
469 host_->AddChildView(view);
472 EXPECT_EQ(gfx::Size(4, 10), layout->GetPreferredSize(host_.get()));
474 host_->SetBounds(0, 0, 10, 10);
475 host_->Layout();
486 host_->SetLayoutManager(layout);
489 host_->AddChildView(v1);
491 host_->AddChildView(v2);
493 host_->AddChildView(v3);
495 host_->SetBounds(0, 0, 85, 50);
498 host_->Layout();
515 host_->Layout();
523 host_->Layout();
535 host_->Layout();
545 host_->SetLayoutManager(layout);
547 host_->AddChildView(v1);
549 host_->AddChildView(v2);
551 host_->AddChildView(v3);
552 host_->SetBounds(0, 0, 20, 20);
567 host_->Layout();
577 host_->Layout();
586 host_->Layout();
595 host_->SetLayoutManager(layout);
597 host_->AddChildView(v1);
600 EXPECT_EQ(gfx::Size(30, 10), layout->GetPreferredSize(host_.get()));
605 host_->SetLayoutManager(layout);
607 host_->AddChildView(v1);
610 EXPECT_EQ(gfx::Size(20, 30), layout->GetPreferredSize(host_.get()));