Lines Matching refs:window

20 #include "ui/aura/window.h"
40 ShelfID CreateShelfItem(aura::Window* window) {
44 SetShelfItemDetailsForWindow(window, item_details);
76 // ShelfItem is removed when assoicated window is destroyed.
120 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
122 // Create a ShelfItem for |window|.
123 ShelfID id = CreateShelfItem(window.get());
129 // Update ShelfItem for |window|.
133 SetShelfItemDetailsForWindow(window.get(), details);
145 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
146 wm::WindowState* window_state = wm::GetWindowState(window.get());
148 // Create a ShelfItem for |window|.
149 ShelfID id = CreateShelfItem(window.get());
155 // Maximize window |window|.
159 // No new item is created after maximizing a window |window|.
161 // index and id are not changed after maximizing a window |window|.
165 // Restore window |window|.
168 // No new item is created after restoring a window |window|.
170 // Index and id are not changed after maximizing a window |window|.
180 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
181 window->set_owned_by_parent(false);
183 // Create a ShelfItem for |window|.
184 ShelfID id = CreateShelfItem(window.get());
190 aura::Window* root_window = window->GetRootWindow();
194 EXPECT_EQ(default_container, window->parent());
200 // Check |window|'s item is removed when it is re-parented to |new_parent|
202 new_parent->AddChild(window.get());
205 // Check |window|'s item is added when it is re-parented to
207 default_container->AddChild(window.get());
211 // Check |window|'s item is not changed during the dragging.
217 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
219 // Create a ShelfItem for |window|.
220 ShelfID id = CreateShelfItem(window.get());
226 // Simulate dragging of |window| and check its item is not changed.
228 CreateWindowResizer(window.get(),
236 //Index and id are not changed after dragging a |window|.
241 // Check |window|'s item is removed when it is re-parented not to default
247 scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
248 window->set_owned_by_parent(false);
250 // Create a ShelfItem for |window|.
251 ShelfID id = CreateShelfItem(window.get());
256 aura::Window* root_window = window->GetRootWindow();
260 EXPECT_EQ(default_container, window->parent());
269 CreateWindowResizer(window.get(),
278 // Item should be removed when |window| is re-parented not to default
280 EXPECT_TRUE(wm::GetWindowState(window.get())->is_dragged());
281 new_parent->AddChild(window.get());
284 EXPECT_FALSE(wm::GetWindowState(window.get())->is_dragged());