Home | History | Annotate | Download | only in aura

Lines Matching refs:window1

1667   scoped_ptr<Window> window1(
1669 client::SetFocusChangeObserver(window1.get(), &delegate1);
1670 window1->Focus();
1671 ASSERT_TRUE(window1->HasFocus());
1680 EXPECT_FALSE(window1->HasFocus());
1681 EXPECT_EQ(window1.get(), delegate2.previous_focused_window());
2020 scoped_ptr<Window> window1(CreateTestWindowWithId(1, root_window()));
2022 ui::Layer* parent = window1->parent()->layer();
2025 WindowTestApi window1_test_api(window1.get());
2031 // After acquisition, window1 should not own its layer, but it should still
2033 scoped_ptr<ui::Layer> window1_layer(window1->AcquireLayer());
2035 EXPECT_TRUE(window1_layer.get() == window1->layer());
2037 // Upon destruction, window1's layer should still be valid, and in the layer
2039 window1.reset();
2103 scoped_ptr<Window> window1(CreateTestWindowWithId(1, root_window()));
2104 window1->layer()->set_name("1");
2110 // This brings |window1| (and its layer) to the front.
2111 root_window()->StackChildAbove(window1.get(), window3.get());
2116 // Since |window1| does not have a delegate, |window2| should not move in
2118 window1->layer()->set_delegate(NULL);
2119 root_window()->StackChildAbove(window2.get(), window1.get());
2124 // It should still be possible to stack |window3| immediately below |window1|.
2125 root_window()->StackChildBelow(window3.get(), window1.get());
2130 // Since neither |window3| nor |window1| have a delegate, |window2| should
2133 root_window()->StackChildBelow(window2.get(), window1.get());
2143 scoped_ptr<Window> window1(CreateTestWindowWithId(1, root_window()));
2144 scoped_ptr<Window> window11(CreateTransientChild(11, window1.get()));
2145 scoped_ptr<Window> window12(CreateTransientChild(12, window1.get()));
2146 scoped_ptr<Window> window13(CreateTransientChild(13, window1.get()));
2157 // Move window1 to the front. All transients should move with it, and their
2159 root->StackChildAtTop(window1.get());
2392 scoped_ptr<Window> window1(CreateTestWindowWithId(1, root_window()));
2393 scoped_ptr<Window> window11(CreateTransientChild(11, window1.get()));
2400 // As a transient, window11 should still be stacked above window1, even when
2402 EXPECT_TRUE(WindowIsAbove(window11.get(), window1.get()));
2403 EXPECT_TRUE(LayerIsAbove(window11.get(), window1.get()));
2405 // A new transient should still be above window1. It will appear behind
2408 scoped_ptr<Window> window12(CreateTransientChild(12, window1.get()));
2411 EXPECT_TRUE(WindowIsAbove(window12.get(), window1.get()));
2412 EXPECT_TRUE(LayerIsAbove(window12.get(), window1.get()));
2415 // window1 above window12 at this point would actually restack the layers
2416 // resulting in window12's layer being below window1's layer (though the
2419 root_window()->StackChildAbove(window1.get(), window12.get());
2421 // Both window12 and its layer should be stacked above window1.
2422 EXPECT_TRUE(WindowIsAbove(window12.get(), window1.get()));
2423 EXPECT_TRUE(LayerIsAbove(window12.get(), window1.get()));
2430 scoped_ptr<Window> window1(CreateTestWindowWithId(1, root_window()));
2431 scoped_ptr<Window> transient1(CreateTransientChild(11, window1.get()));
2438 EXPECT_EQ(root->children()[0], window1.get());
2443 EXPECT_EQ(root->layer()->children()[0], window1->layer());
2448 // This brings window1 and its transient to the front.
2449 root->StackChildAtTop(window1.get());
2453 EXPECT_EQ(root->children()[2], window1.get());
2457 EXPECT_EQ(root->layer()->children()[2], window1->layer());
2466 EXPECT_EQ(root->children()[0], window1.get());
2470 EXPECT_EQ(root->layer()->children()[0], window1->layer());
2479 EXPECT_EQ(root->children()[0], window1.get());
2483 EXPECT_EQ(root->layer()->children()[0], window1->layer());
2491 EXPECT_EQ(root->children()[0], window1.get());
2496 EXPECT_EQ(root->layer()->children()[0], window1->layer());
2507 EXPECT_EQ(root->children()[0], window1.get());
2512 EXPECT_EQ(root->layer()->children()[0], window1->layer());
2517 // Bring window1 to the top. It should move ahead of window2, but not
2519 root->StackChildAtTop(window1.get());
2524 EXPECT_EQ(root->children()[2], window1.get());
2529 EXPECT_EQ(root->layer()->children()[2], window1->layer());