Lines Matching refs:w1

258   scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
259 scoped_ptr<Window> w11(CreateTestWindowWithId(11, w1.get()));
261 scoped_ptr<Window> w12(CreateTestWindowWithId(12, w1.get()));
263 EXPECT_EQ(NULL, w1->GetChildById(57));
264 EXPECT_EQ(w12.get(), w1->GetChildById(12));
265 EXPECT_EQ(w111.get(), w1->GetChildById(111));
315 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
318 Window::ConvertPointToTarget(NULL, w1.get(), &test_point);
323 scoped_ptr<Window> w1(
327 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get()));
337 w1->MoveCursorTo(gfx::Point(10, 10));
382 scoped_ptr<Window> w1(
388 w1->SetTransform(transform1);
389 w1->MoveCursorTo(gfx::Point(10, 10));
391 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
395 w1->SetTransform(transform2);
396 w1->MoveCursorTo(gfx::Point(10, 10));
398 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
402 w1->SetTransform(transform3);
403 w1->MoveCursorTo(gfx::Point(5, 5));
405 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
411 w1->SetTransform(transform4);
412 w1->MoveCursorTo(gfx::Point(10, 10));
414 gfx::Screen::GetScreenFor(w1.get())->GetCursorScreenPoint().ToString());
421 scoped_ptr<Window> w1(
425 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get()));
445 w1->SetTransform(transform);
461 scoped_ptr<Window> w1(
465 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get()));
472 w1.get()));
476 CreateTestWindow(SK_ColorGRAY, 13, gfx::Rect(5, 470, 50, 50), w1.get()));
479 w1->parent()->SetBounds(gfx::Rect(500, 500));
481 EXPECT_EQ(w1.get(), root->GetEventHandlerForPoint(gfx::Point(11, 11)));
527 scoped_ptr<Window> w1(
531 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(0, 0, 120, 120), w1.get()));
549 EXPECT_EQ(w1.get(), root->GetTopWindowContainingPoint(gfx::Point(60, 60)));
550 EXPECT_EQ(w1.get(), root->GetTopWindowContainingPoint(gfx::Point(109, 109)));
561 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
563 CreateTestWindowWithDelegate(&delegate, 11, kBounds, w1.get()));
569 EXPECT_TRUE(w1->GetToplevelWindow() == NULL);
814 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(
820 // Press on w1.
923 // Touch on |w1|.
925 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(
948 // Set capture on |w2|, this should send a cancel (TAP_CANCEL, END) to |w1|
1126 scoped_ptr<Window> w1(
1135 generator.MoveMouseToCenterOf(w1.get());
1151 scoped_ptr<Window> w1(
1156 generator.MoveMouseToCenterOf(w1.get());
1173 scoped_ptr<Window> w1(
1182 generator.MoveMouseToCenterOf(w1.get());
1190 w1->SetCapture();
1191 w1->ReleaseCapture();
1231 scoped_ptr<Window> w1(
1236 generator.MoveMouseToCenterOf(w1.get());
1265 scoped_ptr<Window> w1(
1270 generator.MoveMouseToCenterOf(w1.get());
1295 scoped_ptr<Window> w1(
1300 w1.get());
1309 w1->Hide();
1314 w1.reset();
1319 scoped_ptr<Window> w1(
1324 w1.get());
1334 w1.reset();
1348 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(NULL, 1,
1351 gfx::Rect(0, 0, 500, 500), w1.get()));
1355 gfx::Rect(0, 0, 500, 500), w1.get()));
1358 EXPECT_EQ(w111.get(), w1->GetEventHandlerForPoint(target_point));
1393 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(&d, 1, gfx::Rect(),
1396 CreateTestWindowWithDelegate(&d2, 2, gfx::Rect(), w1.get()));
1400 EXPECT_TRUE(w1->IsVisible());
1406 w1->Hide();
1407 EXPECT_FALSE(w1->IsVisible());
1414 EXPECT_FALSE(w1->IsVisible());
1419 EXPECT_FALSE(w1->IsVisible());
1424 w1->Show();
1425 EXPECT_TRUE(w1->IsVisible());
1432 EXPECT_TRUE(w1->IsVisible());
1438 w1->Hide();
1454 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(NULL, 1,
1457 gfx::Rect(0, 0, 500, 500), w1.get()));
1461 gfx::Rect(0, 0, 500, 500), w1.get()));
1465 EXPECT_EQ(w12.get(), w1->GetEventHandlerForPoint(gfx::Point(10, 10)));
1467 EXPECT_EQ(w11.get(), w1->GetEventHandlerForPoint(gfx::Point(10, 10)));
1470 EXPECT_EQ(w121.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1472 EXPECT_EQ(w12.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1474 EXPECT_EQ(w111.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1476 EXPECT_EQ(w11.get(), w1->GetEventHandlerForPoint(gfx::Point(160, 160)));
1619 scoped_ptr<Window> w1(
1622 EXPECT_FALSE(!w1->layer());
1623 w1->layer()->GetAnimator()->set_disable_timer_for_test(true);
1624 ui::LayerAnimator* animator = w1->layer()->GetAnimator();
1626 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1627 EXPECT_EQ("0,0 100x100", w1->layer()->GetTargetBounds().ToString());
1631 ui::ScopedLayerAnimationSettings settings(w1->layer()->GetAnimator());
1632 w1->SetBounds(gfx::Rect(100, 100, 100, 100));
1635 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1636 EXPECT_EQ("100,100 100x100", w1->layer()->GetTargetBounds().ToString());
1643 ui::ScopedLayerAnimationSettings settings(w1->layer()->GetAnimator());
1644 w1->SetBounds(gfx::Rect(0, 0, 100, 100));
1647 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1648 EXPECT_EQ("0,0 100x100", w1->layer()->GetTargetBounds().ToString());
1652 w1->layer()->GetAnimator()->last_step_time();
1656 EXPECT_EQ("0,0 100x100", w1->bounds().ToString());
1769 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1770 w1->AddObserver(this);
1772 // Create a new window as a child of w1, our observer should be notified.
1773 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1780 // Create a window that isn't parented to w1, we shouldn't get any
1788 w1->RemoveObserver(this);
1794 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1795 scoped_ptr<Window> w2(CreateTestWindowWithId(1, w1.get()));
1810 w1->Hide();
1822 w1->Show();
1836 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1837 w1->AddObserver(this);
1838 w1.reset();
1851 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1852 w1->AddObserver(this);
1857 w1->SetProperty(&prop, 1);
1859 w1->SetProperty(&prop, -2);
1861 w1->SetProperty(&prop, 3);
1863 w1->ClearProperty(&prop);
1866 w1->SetNativeWindowProperty(native_prop_key, &*w1);
1869 w1->SetNativeWindowProperty(native_prop_key, NULL);
1871 reinterpret_cast<intptr_t>(&*w1)),
1882 // +-- w1
1886 // Then, apply a transform to |w1| and ensure all its descendants are
1888 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
1889 w1->AddObserver(this);
1890 scoped_ptr<Window> w2(CreateTestWindowWithId(2, w1.get()));
1892 scoped_ptr<Window> w3(CreateTestWindowWithId(3, w1.get()));
1901 w1->SetTransform(transform);
2066 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(&d1, 1,
2075 &d11, 1, gfx::Rect(0, 0, 100, 100), w1.get()));
2092 w1->RemoveChild(w11.get());
2098 w1->AddChild(w11.get());
2140 &d11, 1, gfx::Rect(0, 0, 100, 100), w1.get()));
2185 scoped_ptr<Window> w1(new Window(NULL));
2186 w1->Init(aura::WINDOW_LAYER_NOT_DRAWN);
2187 w1->AddObserver(&observer);
2189 ParentWindow(w1.get());
2193 w1.reset();
2200 w1.reset(new Window(NULL));
2201 w1->Init(aura::WINDOW_LAYER_NOT_DRAWN);
2205 w1->AddChild(w11);
2209 ParentWindow(w1.get());
2213 w1.reset(); // Deletes w11.
2221 w1.reset(new Window(NULL));
2222 w1->Init(aura::WINDOW_LAYER_NOT_DRAWN);
2226 w1->AddChild(w11);
2235 ParentWindow(w1.get());
2239 w1.reset(); // Deletes w11 and w111.
2306 scoped_ptr<Window> w1(new Window(NULL));
2307 w1->Init(aura::WINDOW_LAYER_NOT_DRAWN);
2311 w1->AddChild(w2.get());
2313 w1.reset();
2505 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
2511 // Move |w2| to be a child of |w1|.
2512 w1->AddChild(w2.get());
2522 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(
2580 scoped_ptr<Window> w1(CreateTestWindowWithId(1, NULL));
2581 HierarchyObserver o1(w1.get());
2584 root_window()->AddChild(w1.get());
2588 params.target = w1.get();
2591 params.receiver = w1.get();
2595 params.receiver = w1.get();
2605 root_window()->RemoveChild(w1.get());
2610 params.receiver = w1.get();
2618 params.receiver = w1.get();
2626 scoped_ptr<Window> w1(CreateTestWindowWithId(1, NULL));
2627 Window* w11 = CreateTestWindowWithId(11, w1.get());
2628 w1->AddObserver(&o);
2632 root_window()->AddChild(w1.get());
2638 params.target = w1.get();
2641 params.receiver = w1.get();
2651 params.receiver = w1.get();
2659 root_window()->RemoveChild(w1.get());
2663 params.receiver = w1.get();
2670 params.receiver = w1.get();
2675 w1.reset();
2680 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window()));
2681 Window* w11 = CreateTestWindowWithId(11, w1.get());
2686 w1->AddObserver(&o);
2698 params.old_parent = w1.get();
2708 params.receiver = w1.get();
2724 w1.reset();
3136 // specify WINDOW_LAYER_NONE, eg "w1:ll".