Lines Matching refs:bounds

70   aura::Window* CreateTestWindow(const gfx::Rect& bounds) {
72 NULL, window_type_, 0, bounds);
86 const gfx::Rect& bounds,
89 delegate, window_type_, 0, bounds);
125 window->bounds().origin() + gfx::Vector2d(dx, dy);
228 gfx::Rect bounds(0, 0, 201, 201);
229 scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
234 EXPECT_EQ(window->GetRootWindow()->bounds().right(),
236 EXPECT_EQ(ideal_width(), window->bounds().width());
246 gfx::Rect bounds(0, 0, 201, 201);
247 scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
251 EXPECT_EQ(window->GetRootWindow()->bounds().x(),
260 gfx::Rect desktop_area = window1->parent()->bounds();
269 min_dock_gap() - window1->bounds().width()) / 2) +
270 ",32 231x320", window1->bounds().ToString());
283 ",32 231x320", window1->bounds().ToString());
286 desktop_area.width() - window2->bounds().width()) +
287 ",48 150x300", window2->bounds().ToString());
296 gfx::Rect bounds(0, 0, 201, 201);
297 scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
301 EXPECT_EQ(window->GetRootWindow()->bounds().right(),
310 gfx::Rect desktop_area = window1->parent()->bounds();
319 min_dock_gap() - window1->bounds().width()) / 2) +
320 ",32 231x320", window1->bounds().ToString());
331 EXPECT_EQ("0,32 231x320", window1->bounds().ToString());
334 desktop_area.width() - window2->bounds().width() -
336 ",48 256x512", window2->bounds().ToString());
349 gfx::Rect bounds(600, 0, 201, 201);
350 scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
363 bounds = gfx::Rect(616, 32, 231, 320);
365 CreateTestWindowInShellWithDelegate(NULL, 1, bounds));
366 gfx::Rect desktop_area = window1->parent()->bounds();
374 min_dock_gap() - window1->bounds().width()) / 2) +
377 bounds = gfx::Rect(632, 48, 256, 512);
379 CreateTestWindowInShellWithDelegate(NULL, 2, bounds));
390 600 + desktop_area.width() - window2->bounds().width() -
406 EXPECT_EQ(w1->GetRootWindow()->bounds().right(),
409 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
435 EXPECT_EQ(w1->GetRootWindow()->bounds().right(),
438 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
444 DragMove(0, -w2->bounds().height() / 2 - min_dock_gap() - 1);
472 EXPECT_EQ(w1->GetRootWindow()->bounds().right(),
475 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
478 EXPECT_EQ(w3->GetRootWindow()->bounds().right(),
497 // A bit more vertical drag is needed to account for a window bounds changing
498 // to its restore bounds during the drag.
500 DragMove(0, min_dock_gap() + w2->bounds().height() / 2 + 10);
541 EXPECT_EQ(w1->GetRootWindow()->bounds().right(),
544 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
547 EXPECT_EQ(w3->GetRootWindow()->bounds().right(),
566 // A bit more vertical drag is needed to account for a window bounds changing
567 // to its restore bounds during the drag.
569 DragMove(0, min_dock_gap() + w2->bounds().height() / 2 + 10);
598 EXPECT_EQ(ideal_width(), w1->bounds().width());
602 EXPECT_EQ(ideal_width(), w2->bounds().width());
615 EXPECT_EQ(201, w1->bounds().width());
619 EXPECT_EQ(w1->bounds().width(), w2->bounds().width());
632 EXPECT_EQ(ideal_width(), w1->bounds().width());
636 EXPECT_EQ(280, w2->bounds().width());
639 EXPECT_EQ(w1->bounds().width(), w2->bounds().width());
657 EXPECT_EQ(240, w1->bounds().width());
661 EXPECT_EQ(260, w2->bounds().width());
664 EXPECT_EQ(w1->bounds().CenterPoint().x(), w2->bounds().CenterPoint().x());
686 EXPECT_NE(window->GetRootWindow()->bounds().right(),
704 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
707 EXPECT_EQ(w3->GetRootWindow()->bounds().right(),
730 EXPECT_EQ(w1->GetRootWindow()->bounds().right(),
733 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
787 EXPECT_EQ(w1->GetRootWindow()->bounds().right(),
790 EXPECT_EQ(w2->GetRootWindow()->bounds().right(),
815 gfx::Rect bounds(600, 0, 201, 201);
816 scoped_ptr<aura::Window> window(CreateTestWindow(bounds));
825 EXPECT_EQ(window->GetRootWindow()->bounds().right(),
828 EXPECT_EQ(ideal_width(), window->bounds().width());