Home | History | Annotate | Download | only in aura

Lines Matching refs:w2

600   scoped_ptr<Window> w2(
613 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(5, 5)));
614 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(10, 10)));
615 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(59, 59)));
884 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
895 // Capturing to w2 should cause the touch to be canceled.
896 w2->SetCapture();
902 // Events now go to w2.
916 // A new press is captured by w2.
927 w2->ReleaseCapture();
996 // Touch on |w2| with a different id.
998 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
1010 // Set capture on |w2|, this should send a cancel (TAP_CANCEL, END) to |w1|
1011 // but not |w2|.
1012 w2->SetCapture();
1034 // Move touch id originally associated with |w2|. Since capture was transfered
1078 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
1099 // Set capture to |w2|, should implicitly unset capture for |window|.
1102 w2->SetCapture();
1192 scoped_ptr<Window> w2(
1203 generator.MoveMouseToCenterOf(w2.get());
1239 scoped_ptr<Window> w2(
1256 generator.MoveMouseToCenterOf(w2.get());
1304 scoped_ptr<Window> w2(
1335 scoped_ptr<Window> w2(
1346 w2->Hide();
1359 Window* w2 = CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(10, 10, 50, 50),
1362 generator.MoveMouseToCenterOf(w2);
1383 Window* w2 = CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(10, 10, 50, 50),
1386 generator.MoveMouseToCenterOf(w2);
1455 scoped_ptr<Window> w2(
1457 scoped_ptr<Window> w3(CreateTestWindowWithId(3, w2.get()));
1461 EXPECT_TRUE(w2->IsVisible());
1468 EXPECT_FALSE(w2->IsVisible());
1473 w2->Show();
1475 EXPECT_FALSE(w2->IsVisible());
1480 EXPECT_FALSE(w2->IsVisible());
1486 EXPECT_TRUE(w2->IsVisible());
1493 EXPECT_TRUE(w2->IsVisible());
1500 w2->Hide();
1504 w2->Show();
1591 Window* w2 = CreateTestWindowWithId(2, parent.get());
1592 w1->AddTransientChild(w2); // w2 is now owned by w1.
1593 // Stack w1 at the top (end), this should force w2 to be last (on top of w1).
1596 EXPECT_EQ(w2, parent->children().back());
1600 w2 = NULL;
1605 w2 = CreateTestWindowWithId(5, w3.get());
1606 w1->AddTransientChild(w2);
1608 // Stack w1 at the top (end), this shouldn't affect w2 since it has a
1616 EXPECT_TRUE(w2->IsVisible());
1618 EXPECT_FALSE(w2->IsVisible());
1850 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1853 // Delete w2, which should result in the remove notification.
1854 w2.reset();
1872 scoped_ptr<Window> w2(CreateTestWindowWithId(1, w1.get()));
1873 w2->AddObserver(this);
1877 w2->Hide();
1890 w2->Show();
1900 w2->Hide();
1902 w2->Show();
2589 scoped_ptr<Window> w2(new Window(NULL));
2590 w2->set_owned_by_parent(false);
2591 w2->Init(ui::LAYER_NOT_DRAWN);
2592 w1->AddChild(w2.get());
2596 // We should be able to deref w2 still, but its parent should now be NULL.
2597 EXPECT_EQ(NULL, w2->parent());
2786 scoped_ptr<Window> w2(CreateTestWindowWithId(1, root_window()));
2787 w2->AddObserver(&observer);
2788 w2->Focus();
2789 EXPECT_TRUE(w2->HasFocus());
2791 // Move |w2| to be a child of |w1|.
2792 w1->AddChild(w2.get());
2795 // |w2| should still have focus after moving.
2796 EXPECT_TRUE(w2->HasFocus());
2963 scoped_ptr<Window> w2(CreateTestWindowWithId(2, root_window()));
2969 w2->AddObserver(&o);
2971 w2->AddChild(w11);
2979 params.new_parent = w2.get();
2999 params.receiver = w2.get();
3005 w2.reset();