Home | History | Annotate | Download | only in wm

Lines Matching refs:w11

38 // Creates three windows, w1, w11, and w12. w11 is a non-modal transient, w12 is
41 // - it should be possible to activate w12 even when w11 is open.
48 scoped_ptr<aura::Window> w11(
53 ::wm::AddTransientChild(w1.get(), w11.get());
56 wm::ActivateWindow(w11.get());
57 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
64 wm::ActivateWindow(w11.get());
65 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
78 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
79 w11.reset();
83 // Create two toplevel windows w1 and w2, and nest two modals w11 and w111 below
86 // - activating w1 while w11/w111 is showing always activates most deeply nested
93 scoped_ptr<aura::Window> w11(
100 ::wm::AddTransientChild(w1.get(), w11.get());
101 ::wm::AddTransientChild(w11.get(), w111.get());
109 w11->SetProperty(aura::client::kModalKey, ui::MODAL_TYPE_WINDOW);
117 wm::ActivateWindow(w11.get());
133 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
134 w11.reset();
138 // Create two toplevel windows w1 and w2, and nest two modals w11 and w111 below
141 // - destroying w11 while w111 is focused activates w1.
146 scoped_ptr<aura::Window> w11(
148 // |w111| will be owned and deleted by |w11|.
154 ::wm::AddTransientChild(w1.get(), w11.get());
155 ::wm::AddTransientChild(w11.get(), w111);
163 w11->SetProperty(aura::client::kModalKey, ui::MODAL_TYPE_WINDOW);
170 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
176 w11.reset();
185 scoped_ptr<aura::Window> w11(CreateTestWindowInShellWithDelegate(&d, -11,
188 ::wm::AddTransientChild(w1.get(), w11.get());
198 w11->SetProperty(aura::client::kModalKey, ui::MODAL_TYPE_WINDOW);
201 // Clicking a point within w1 should activate w11.
205 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
214 scoped_ptr<aura::Window> w11(CreateTestWindowInShellWithDelegate(&d, -11,
216 ::wm::AddTransientChild(w1.get(), w11.get());
220 w11->SetProperty(aura::client::kModalKey, ui::MODAL_TYPE_WINDOW);
229 EXPECT_TRUE(wm::IsActiveWindow(w11.get()));
233 // Creates windows w1 and non activatiable child w11. Creates transient window
235 // the parent of w1, and that GetModalTransient(w11) returns w2.
240 scoped_ptr<aura::Window> w11(
260 // Request the modal transient window for w11, it should also be w2.
261 wt = ::wm::GetModalTransient(w11.get());
348 scoped_ptr<aura::Window> w11(CreateTestWindowInShellWithDelegate(&d11,
353 ::wm::AddTransientChild(w1.get(), w11.get());
372 w11->SetProperty(aura::client::kModalKey, ui::MODAL_TYPE_WINDOW);