Home | History | Annotate | Download | only in aura

Lines Matching refs:w1

282   scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
283 scoped_ptr<Window> w11(CreateTestWindowWithId(11, w1.get()));
285 scoped_ptr<Window> w12(CreateTestWindowWithId(12, w1.get()));
287 EXPECT_EQ(NULL, w1->GetChildById(57));
288 EXPECT_EQ(w12.get(), w1->GetChildById(12));
289 EXPECT_EQ(w111.get(), w1->GetChildById(111));
339 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
342 Window::ConvertPointToTarget(NULL, w1.get(), &test_point);
347 scoped_ptr<Window> w1(
351 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get()));
361 w1->MoveCursorTo(gfx::Point(10, 10));
414 scoped_ptr<Window> w1(
420 w1->SetTransform(transform1);
421 w1->MoveCursorTo(gfx::Point(10, 10));
423 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
427 w1->SetTransform(transform2);
428 w1->MoveCursorTo(gfx::Point(10, 10));
430 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
434 w1->SetTransform(transform3);
435 w1->MoveCursorTo(gfx::Point(5, 5));
437 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
443 w1->SetTransform(transform4);
444 w1->MoveCursorTo(gfx::Point(10, 10));
446 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
458 scoped_ptr<Window> w1(
462 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get()));
482 w1->SetTransform(transform);
500 Window w1(new ColorTestWindowDelegate(SK_ColorWHITE));
501 w1.set_id(1);
502 w1.Init(ui::LAYER_TEXTURED);
503 w1.SetBounds(gfx::Rect(10, 20, 50, 60));
504 w1.Show();
505 SetDefaultParentByPrimaryRootWindow(&w1);
508 EXPECT_TRUE(w1.HitTest(gfx::Point(1, 1)));
509 EXPECT_FALSE(w1.HitTest(gfx::Point(-1, -1)));
512 w1.SetHitTestBoundsOverrideOuter(gfx::Insets(-1, -1, -1, -1),
514 EXPECT_TRUE(w1.HitTest(gfx::Point(-1, -1)));
515 EXPECT_FALSE(w1.HitTest(gfx::Point(-2, -2)));
520 EXPECT_TRUE(w1.HitTest(gfx::Point(-2, -2)));
521 EXPECT_TRUE(w1.HitTest(gfx::Point(-5, -5)));
522 EXPECT_FALSE(w1.HitTest(gfx::Point(-5, -6)));
526 EXPECT_FALSE(w1.HitTest(gfx::Point(-2, -2)));
533 Window w1(&d1);
534 w1.Init(ui::LAYER_NOT_DRAWN);
535 w1.SetBounds(gfx::Rect(10, 20, 50, 60));
536 w1.Show();
537 SetDefaultParentByPrimaryRootWindow(&w1);
540 EXPECT_TRUE(w1.HitTest(gfx::Point(5, 6))); // top-left
541 EXPECT_TRUE(w1.HitTest(gfx::Point(15, 21))); // center
542 EXPECT_TRUE(w1.HitTest(gfx::Point(24, 35))); // bottom-right
545 EXPECT_FALSE(w1.HitTest(gfx::Point(0, 0)));
546 EXPECT_FALSE(w1.HitTest(gfx::Point(60, 80)));
547 EXPECT_FALSE(w1.HitTest(gfx::Point(4, 6)));
548 EXPECT_FALSE(w1.HitTest(gfx::Point(5, 5)));
549 EXPECT_FALSE(w1.HitTest(gfx::Point(25, 36)));
553 scoped_ptr<Window> w1(
557 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get()));
564 w1.get()));
568 CreateTestWindow(SK_ColorGRAY, 13, gfx::Rect(5, 470, 50, 50), w1.get()));
571 w1->parent()->SetBounds(gfx::Rect(500, 500));
573 EXPECT_EQ(w1.get(), root->GetEventHandlerForPoint(gfx::Point(11, 11)));
619 scoped_ptr<Window> w1(
623 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(0, 0, 120, 120), w1.get()));
641 EXPECT_EQ(w1.get(), root->GetTopWindowContainingPoint(gfx::Point(60, 60)));
642 EXPECT_EQ(w1.get(), root->GetTopWindowContainingPoint(gfx::Point(109, 109)));
653 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
655 CreateTestWindowWithDelegate(&delegate, 11, kBounds, w1.get()));
661 EXPECT_TRUE(w1->GetToplevelWindow() == NULL);
906 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(
912 // Press on w1.
1010 // Touch on |w1|.
1012 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(
1035 // Set capture on |w2|, this should send a cancel (TAP_CANCEL, END) to |w1|
1213 scoped_ptr<Window> w1(
1222 generator.MoveMouseToCenterOf(w1.get());
1238 scoped_ptr<Window> w1(
1243 generator.MoveMouseToCenterOf(w1.get());
1260 scoped_ptr<Window> w1(
1269 generator.MoveMouseToCenterOf(w1.get());
1277 w1->SetCapture();
1278 w1->ReleaseCapture();
1318 scoped_ptr<Window> w1(
1323 generator.MoveMouseToCenterOf(w1.get());
1350 scoped_ptr<Window> w1(
1355 generator.MoveMouseToCenterOf(w1.get());
1380 scoped_ptr<Window> w1(
1385 w1
1394 w1->Hide();
1399 w1.reset();
1404 scoped_ptr<Window> w1(
1409 w1.get());
1419 w1.reset();
1433 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(NULL, 1,
1436 gfx::Rect(0, 0, 500, 500), w1.get()));
1440 gfx::Rect(0, 0, 500, 500), w1.get()));
1443 EXPECT_EQ(w111.get(), w1->GetEventHandlerForPoint(target_point));
1478 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(&d, 1, gfx::Rect(),
1481 CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(), w1.get()));
1485 EXPECT_TRUE(w1->IsVisible());
1491 w1->Hide();
1492 EXPECT_FALSE(w1->IsVisible());
1499 EXPECT_FALSE(w1->IsVisible());
1504 EXPECT_FALSE(w1->IsVisible());
1509 w1->Show();
1510 EXPECT_TRUE(w1->IsVisible());
1517 EXPECT_TRUE(w1->IsVisible());
1523 w1->Hide();
1539 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(NULL, 1,
1542 gfx::Rect(0, 0, 500, 500), w1.get()));
1546 gfx::Rect(0, 0, 500, 500), w1.get()));
1550 EXPECT_EQ(w12.get(), w1->GetEventHandlerForPoint(gfx::Point(10, 10)));
1552 EXPECT_EQ(w11.get(), w1->GetEventHandlerForPoint(gfx::Point(10, 10)));
1555 EXPECT_EQ(w121.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1557 EXPECT_EQ(w12.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1559 EXPECT_EQ(w111.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1561 EXPECT_EQ(w11.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1614 scoped_ptr<Window> w1(CreateTestWindowWithId(1, parent.get()));
1617 w1->AddTransientChild(w2); // w2 is now owned by w1.
1618 // Stack w1 at the top (end), this should force w2 to be last (on top of w1).
1619 parent->StackChildAtTop(w1.get());
1623 // Destroy w1, which should also destroy w3 (since it's a transient child).
1624 w1.reset();
1629 w1.reset(CreateTestWindowWithId(4, parent.get()));
1631 w1->AddTransientChild(w2);
1633 // Stack w1 at the top (end), this shouldn't affect w2 since it has a
1635 parent->StackChildAtTop(w1.get());
1638 EXPECT_EQ(w1.get(), parent->children()[1]);
1642 w1->Hide();
1778 scoped_ptr<Window> w1(
1781 EXPECT_FALSE(!w1->layer());
1782 w1->layer()->GetAnimator()->set_disable_timer_for_test(true);
1783 ui::AnimationContainerElement* element = w1->layer()->GetAnimator();
1785 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1786 EXPECT_EQ("0,0 100x100", w1->layer()->GetTargetBounds().ToString());
1790 ui::ScopedLayerAnimationSettings settings(w1->layer()->GetAnimator());
1791 w1->SetBounds(gfx::Rect(100, 100, 100, 100));
1794 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1795 EXPECT_EQ("100,100 100x100", w1->layer()->GetTargetBounds().ToString());
1802 ui::ScopedLayerAnimationSettings settings(w1->layer()->GetAnimator());
1803 w1->SetBounds(gfx::Rect(0, 0, 100, 100));
1806 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1807 EXPECT_EQ("0,0 100x100", w1->layer()->GetTargetBounds().ToString());
1811 w1->layer()->GetAnimator()->last_step_time();
1815 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1909 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1910 w1->AddObserver(this);
1912 // Create a new window as a child of w1, our observer should be notified.
1913 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1920 // Create a window that isn't parented to w1, we shouldn't get any
1928 w1->RemoveObserver(this);
1934 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1935 scoped_ptr<Window> w2(CreateTestWindowWithId(1, w1.get()));
1950 w1->Hide();
1962 w1->Show();
1976 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1977 w1->AddObserver(this);
1978 w1.reset();
1991 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1992 w1->AddObserver(this);
1997 w1->SetProperty(&prop, 1);
1999 w1->SetProperty(&prop, -2);
2001 w1->SetProperty(&prop, 3);
2003 w1->ClearProperty(&prop);
2006 w1->SetNativeWindowProperty(native_prop_key, &*w1);
2009 w1->SetNativeWindowProperty(native_prop_key, NULL);
2011 reinterpret_cast<intptr_t>(&*w1)),
2215 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(&d1, 1,
2224 &d11, 1, gfx::Rect(0, 0, 100, 100), w1.get()));
2241 w1->RemoveChild(w11.get());
2247 w1->AddChild(w11.get());
2289 &d11, 1, gfx::Rect(0, 0, 100, 100), w1.get()));
2565 scoped_ptr<Window> w1(new Window(NULL));
2566 w1->Init(ui::LAYER_NOT_DRAWN);
2567 w1->AddObserver(&observer);
2569 SetDefaultParentByPrimaryRootWindow(w1.get());
2573 w1.reset();
2580 w1.reset(new Window(NULL));
2581 w1->Init(ui::LAYER_NOT_DRAWN);
2585 w1->AddChild(w11);
2589 SetDefaultParentByPrimaryRootWindow(w1.get());
2593 w1.reset(); // Deletes w11.
2601 w1.reset(new Window(NULL));
2602 w1->Init(ui::LAYER_NOT_DRAWN);
2606 w1->AddChild(w11);
2615 SetDefaultParentByPrimaryRootWindow(w1.get());
2619 w1.reset(); // Deletes w11 and w111.
2630 scoped_ptr<Window> w1(new Window(NULL));
2631 w1->Init(ui::LAYER_NOT_DRAWN);
2635 w1->AddChild(w2.get());
2637 w1.reset();
2828 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
2834 // Move |w2| to be a child of |w1|.
2835 w1->AddChild(w2.get());
2845 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(
2903 scoped_ptr<Window> w1(CreateTestWindowWithId(1, NULL));
2904 HierarchyObserver o1(w1.get());
2907 root_window()->AddChild(w1.get());
2911 params.target = w1.get();
2914 params.receiver = w1.get();
2918 params.receiver = w1.get();
2928 root_window()->RemoveChild(w1.get());
2933 params.receiver = w1.get();
2941 params.receiver = w1.get();
2949 scoped_ptr<Window> w1(CreateTestWindowWithId(1, NULL));
2950 Window* w11 = CreateTestWindowWithId(11, w1.get());
2951 w1->AddObserver(&o);
2955 root_window()->AddChild(w1.get());
2961 params.target = w1.get();
2964 params.receiver = w1.get();
2974 params.receiver = w1.get();
2982 root_window()->RemoveChild(w1.get());
2986 params.receiver = w1.get();
2993 params.receiver = w1.get();
2998 w1.reset();
3003 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
3004 Window* w11 = CreateTestWindowWithId(11, w1.get());
3009 w1->AddObserver(&o);
3021 params.old_parent = w1.get();
3031 params.receiver = w1.get();
3047 w1.reset();