Lines Matching refs:w2
625 scoped_ptr<Window> w2(
638 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(5, 5)));
639 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(10, 10)));
640 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(59, 59)));
909 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
920 // Capturing to w2 should cause the touch to be canceled.
921 w2->SetCapture();
927 // Events now go to w2.
941 // A new press is captured by w2.
952 w2->ReleaseCapture();
1021 // Touch on |w2| with a different id.
1023 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
1035 // Set capture on |w2|, this should send a cancel (TAP_CANCEL, END) to |w1|
1036 // but not |w2|.
1037 w2->SetCapture();
1059 // Move touch id originally associated with |w2|. Since capture was transfered
1103 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
1124 // Set capture to |w2|, should implicitly unset capture for |window|.
1127 w2->SetCapture();
1217 scoped_ptr<Window> w2(
1228 generator.MoveMouseToCenterOf(w2.get());
1264 scoped_ptr<Window> w2(
1281 generator.MoveMouseToCenterOf(w2.get());
1329 scoped_ptr<Window> w2(
1360 scoped_ptr<Window> w2(
1371 w2->Hide();
1384 Window* w2 = CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(10, 10, 50, 50),
1387 generator.MoveMouseToCenterOf(w2);
1408 Window* w2 = CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(10, 10, 50, 50),
1411 generator.MoveMouseToCenterOf(w2);
1480 scoped_ptr<Window> w2(
1482 scoped_ptr<Window> w3(CreateTestWindowWithId(3, w2.get()));
1486 EXPECT_TRUE(w2->IsVisible());
1493 EXPECT_FALSE(w2->IsVisible());
1498 w2->Show();
1500 EXPECT_FALSE(w2->IsVisible());
1505 EXPECT_FALSE(w2->IsVisible());
1511 EXPECT_TRUE(w2->IsVisible());
1518 EXPECT_TRUE(w2->IsVisible());
1525 w2->Hide();
1529 w2->Show();
1616 Window* w2 = CreateTestWindowWithId(2, 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).
1621 EXPECT_EQ(w2, parent->children().back());
1625 w2 = NULL;
1630 w2 = CreateTestWindowWithId(5, w3.get());
1631 w1->AddTransientChild(w2);
1633 // Stack w1 at the top (end), this shouldn't affect w2 since it has a
1641 EXPECT_TRUE(w2->IsVisible());
1643 EXPECT_FALSE(w2->IsVisible());
1913 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1916 // Delete w2, which should result in the remove notification.
1917 w2.reset();
1935 scoped_ptr<Window> w2(CreateTestWindowWithId(1, w1.get()));
1936 w2->AddObserver(this);
1940 w2->Hide();
1953 w2->Show();
1963 w2->Hide();
1965 w2->Show();
2632 scoped_ptr<Window> w2(new Window(NULL));
2633 w2->set_owned_by_parent(false);
2634 w2->Init(ui::LAYER_NOT_DRAWN);
2635 w1->AddChild(w2.get());
2639 // We should be able to deref w2 still, but its parent should now be NULL.
2640 EXPECT_EQ(NULL, w2->parent());
2829 scoped_ptr<Window> w2(CreateTestWindowWithId(1, root_window()));
2830 w2->AddObserver(&observer);
2831 w2->Focus();
2832 EXPECT_TRUE(w2->HasFocus());
2834 // Move |w2| to be a child of |w1|.
2835 w1->AddChild(w2.get());
2838 // |w2| should still have focus after moving.
2839 EXPECT_TRUE(w2->HasFocus());
3006 scoped_ptr<Window> w2(CreateTestWindowWithId(2, root_window()));
3012 w2->AddObserver(&o);
3014 w2->AddChild(w11);
3022 params.new_parent = w2.get();
3042 params.receiver = w2.get();
3048 w2.reset();