Lines Matching refs:w2

533   scoped_ptr<Window> w2(
546 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(5, 5)));
547 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(10, 10)));
548 EXPECT_EQ(w2.get(), root->GetTopWindowContainingPoint(gfx::Point(59, 59)));
817 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
828 // Capturing to w2 should cause the touch to be canceled.
829 w2->SetCapture();
835 // Events now go to w2.
849 // A new press is captured by w2.
860 w2->ReleaseCapture();
934 // Touch on |w2| with a different id.
936 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
948 // Set capture on |w2|, this should send a cancel (TAP_CANCEL, END) to |w1|
949 // but not |w2|.
950 w2->SetCapture();
972 // Move touch id originally associated with |w2|. Since capture was transfered
1016 scoped_ptr<Window> w2(CreateTestWindowWithDelegate(
1037 // Set capture to |w2|, should implicitly unset capture for |window|.
1040 w2->SetCapture();
1130 scoped_ptr<Window> w2(
1141 generator.MoveMouseToCenterOf(w2.get());
1177 scoped_ptr<Window> w2(
1194 generator.MoveMouseToCenterOf(w2.get());
1243 scoped_ptr<Window> w2(
1275 scoped_ptr<Window> w2(
1286 w2->Hide();
1299 Window* w2 = CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(10, 10, 50, 50),
1302 generator.MoveMouseToCenterOf(w2);
1323 Window* w2 = CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(10, 10, 50, 50),
1326 generator.MoveMouseToCenterOf(w2);
1395 scoped_ptr<Window> w2(
1397 scoped_ptr<Window> w3(CreateTestWindowWithId(3, w2.get()));
1401 EXPECT_TRUE(w2->IsVisible());
1408 EXPECT_FALSE(w2->IsVisible());
1413 w2->Show();
1415 EXPECT_FALSE(w2->IsVisible());
1420 EXPECT_FALSE(w2->IsVisible());
1426 EXPECT_TRUE(w2->IsVisible());
1433 EXPECT_TRUE(w2->IsVisible());
1440 w2->Hide();
1444 w2->Show();
1773 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1776 // Delete w2, which should result in the remove notification.
1777 w2.reset();
1795 scoped_ptr<Window> w2(CreateTestWindowWithId(1, w1.get()));
1796 w2->AddObserver(this);
1800 w2->Hide();
1813 w2->Show();
1823 w2->Hide();
1825 w2->Show();
1883 // +-- w2
1890 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1891 w2->AddObserver(this);
2308 scoped_ptr<Window> w2(new Window(NULL));
2309 w2->set_owned_by_parent(false);
2310 w2->Init(aura::WINDOW_LAYER_NOT_DRAWN);
2311 w1->AddChild(w2.get());
2315 // We should be able to deref w2 still, but its parent should now be NULL.
2316 EXPECT_EQ(NULL, w2->parent());
2506 scoped_ptr<Window> w2(CreateTestWindowWithId(1, root_window()));
2507 w2->AddObserver(&observer);
2508 w2->Focus();
2509 EXPECT_TRUE(w2->HasFocus());
2511 // Move |w2| to be a child of |w1|.
2512 w1->AddChild(w2.get());
2515 // |w2| should still have focus after moving.
2516 EXPECT_TRUE(w2->HasFocus());
2683 scoped_ptr<Window> w2(CreateTestWindowWithId(2, root_window()));
2689 w2->AddObserver(&o);
2691 w2->AddChild(w11);
2699 params.new_parent = w2.get();
2719 params.receiver = w2.get();
2725 w2.reset();