OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/wm/panels/panel_window_resizer.h" | 5 #include "ash/wm/panels/panel_window_resizer.h" |
6 | 6 |
7 #include "ash/launcher/launcher.h" | 7 #include "ash/launcher/launcher.h" |
8 #include "ash/launcher/launcher_model.h" | 8 #include "ash/launcher/launcher_model.h" |
9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 protected: | 49 protected: |
50 gfx::Point CalculateDragPoint(const WindowResizer& resizer, | 50 gfx::Point CalculateDragPoint(const WindowResizer& resizer, |
51 int delta_x, | 51 int delta_x, |
52 int delta_y) const { | 52 int delta_y) const { |
53 gfx::Point location = resizer.GetInitialLocation(); | 53 gfx::Point location = resizer.GetInitialLocation(); |
54 location.set_x(location.x() + delta_x); | 54 location.set_x(location.x() + delta_x); |
55 location.set_y(location.y() + delta_y); | 55 location.set_y(location.y() + delta_y); |
56 return location; | 56 return location; |
57 } | 57 } |
58 | 58 |
59 aura::Window* CreatePanelWindow(const gfx::Rect& bounds) { | 59 aura::Window* CreatePanelWindow(const gfx::Point& origin) { |
| 60 gfx::Rect bounds(origin, gfx::Size(101, 101)); |
60 aura::Window* window = CreateTestWindowInShellWithDelegateAndType( | 61 aura::Window* window = CreateTestWindowInShellWithDelegateAndType( |
61 NULL, | 62 NULL, |
62 aura::client::WINDOW_TYPE_PANEL, | 63 aura::client::WINDOW_TYPE_PANEL, |
63 0, | 64 0, |
64 bounds); | 65 bounds); |
65 launcher_delegate_->AddLauncherItem(window); | 66 launcher_delegate_->AddLauncherItem(window); |
66 PanelLayoutManager* manager = | 67 PanelLayoutManager* manager = |
67 static_cast<PanelLayoutManager*>( | 68 static_cast<PanelLayoutManager*>( |
68 Shell::GetContainer(window->GetRootWindow(), | 69 Shell::GetContainer(window->GetRootWindow(), |
69 internal::kShellWindowId_PanelContainer)-> | 70 internal::kShellWindowId_PanelContainer)-> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 window_order.begin(); iter != window_order.end(); | 145 window_order.begin(); iter != window_order.end(); |
145 ++iter, ++panel_index) { | 146 ++iter, ++panel_index) { |
146 LauncherID id = launcher_delegate_->GetIDByWindow(*iter); | 147 LauncherID id = launcher_delegate_->GetIDByWindow(*iter); |
147 EXPECT_EQ(id, model_->items()[panel_index].id); | 148 EXPECT_EQ(id, model_->items()[panel_index].id); |
148 } | 149 } |
149 } | 150 } |
150 | 151 |
151 // Test dragging panel window along the shelf and verify that panel icons | 152 // Test dragging panel window along the shelf and verify that panel icons |
152 // are reordered appropriately. | 153 // are reordered appropriately. |
153 void DragAlongShelfReorder(int dx, int dy) { | 154 void DragAlongShelfReorder(int dx, int dy) { |
154 gfx::Rect bounds(0, 0, 201, 201); | 155 gfx::Point origin(0, 0); |
155 scoped_ptr<aura::Window> w1(CreatePanelWindow(bounds)); | 156 scoped_ptr<aura::Window> w1(CreatePanelWindow(origin)); |
156 scoped_ptr<aura::Window> w2(CreatePanelWindow(bounds)); | 157 scoped_ptr<aura::Window> w2(CreatePanelWindow(origin)); |
157 std::vector<aura::Window*> window_order_original; | 158 std::vector<aura::Window*> window_order_original; |
158 std::vector<aura::Window*> window_order_swapped; | 159 std::vector<aura::Window*> window_order_swapped; |
159 window_order_original.push_back(w1.get()); | 160 window_order_original.push_back(w1.get()); |
160 window_order_original.push_back(w2.get()); | 161 window_order_original.push_back(w2.get()); |
161 window_order_swapped.push_back(w2.get()); | 162 window_order_swapped.push_back(w2.get()); |
162 window_order_swapped.push_back(w1.get()); | 163 window_order_swapped.push_back(w1.get()); |
163 TestWindowOrder(window_order_original); | 164 TestWindowOrder(window_order_original); |
164 | 165 |
165 // Drag window #2 to the beginning of the shelf. | 166 // Drag window #2 to the beginning of the shelf. |
166 DragStart(w2.get()); | 167 DragStart(w2.get()); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizerTextDirectionTest); | 219 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizerTextDirectionTest); |
219 }; | 220 }; |
220 | 221 |
221 // Verifies a window can be dragged from the panel and detached and then | 222 // Verifies a window can be dragged from the panel and detached and then |
222 // reattached. | 223 // reattached. |
223 TEST_F(PanelWindowResizerTest, PanelDetachReattachBottom) { | 224 TEST_F(PanelWindowResizerTest, PanelDetachReattachBottom) { |
224 if (!SupportsHostWindowResize()) | 225 if (!SupportsHostWindowResize()) |
225 return; | 226 return; |
226 | 227 |
227 scoped_ptr<aura::Window> window( | 228 scoped_ptr<aura::Window> window( |
228 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 229 CreatePanelWindow(gfx::Point(0, 0))); |
229 DetachReattachTest(window.get(), 0, -1); | 230 DetachReattachTest(window.get(), 0, -1); |
230 } | 231 } |
231 | 232 |
232 TEST_F(PanelWindowResizerTest, PanelDetachReattachLeft) { | 233 TEST_F(PanelWindowResizerTest, PanelDetachReattachLeft) { |
233 if (!SupportsHostWindowResize()) | 234 if (!SupportsHostWindowResize()) |
234 return; | 235 return; |
235 | 236 |
236 ash::Shell* shell = ash::Shell::GetInstance(); | 237 ash::Shell* shell = ash::Shell::GetInstance(); |
237 shell->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, shell->GetPrimaryRootWindow()); | 238 shell->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, shell->GetPrimaryRootWindow()); |
238 scoped_ptr<aura::Window> window( | 239 scoped_ptr<aura::Window> window( |
239 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 240 CreatePanelWindow(gfx::Point(0, 0))); |
240 DetachReattachTest(window.get(), 1, 0); | 241 DetachReattachTest(window.get(), 1, 0); |
241 } | 242 } |
242 | 243 |
243 TEST_F(PanelWindowResizerTest, PanelDetachReattachRight) { | 244 TEST_F(PanelWindowResizerTest, PanelDetachReattachRight) { |
244 if (!SupportsHostWindowResize()) | 245 if (!SupportsHostWindowResize()) |
245 return; | 246 return; |
246 | 247 |
247 ash::Shell* shell = ash::Shell::GetInstance(); | 248 ash::Shell* shell = ash::Shell::GetInstance(); |
248 shell->SetShelfAlignment(SHELF_ALIGNMENT_RIGHT, | 249 shell->SetShelfAlignment(SHELF_ALIGNMENT_RIGHT, |
249 shell->GetPrimaryRootWindow()); | 250 shell->GetPrimaryRootWindow()); |
250 scoped_ptr<aura::Window> window( | 251 scoped_ptr<aura::Window> window( |
251 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 252 CreatePanelWindow(gfx::Point(0, 0))); |
252 DetachReattachTest(window.get(), -1, 0); | 253 DetachReattachTest(window.get(), -1, 0); |
253 } | 254 } |
254 | 255 |
255 TEST_F(PanelWindowResizerTest, PanelDetachReattachTop) { | 256 TEST_F(PanelWindowResizerTest, PanelDetachReattachTop) { |
256 if (!SupportsHostWindowResize()) | 257 if (!SupportsHostWindowResize()) |
257 return; | 258 return; |
258 | 259 |
259 ash::Shell* shell = ash::Shell::GetInstance(); | 260 ash::Shell* shell = ash::Shell::GetInstance(); |
260 shell->SetShelfAlignment(SHELF_ALIGNMENT_TOP, shell->GetPrimaryRootWindow()); | 261 shell->SetShelfAlignment(SHELF_ALIGNMENT_TOP, shell->GetPrimaryRootWindow()); |
261 scoped_ptr<aura::Window> window( | 262 scoped_ptr<aura::Window> window( |
262 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 263 CreatePanelWindow(gfx::Point(0, 0))); |
263 DetachReattachTest(window.get(), 0, 1); | 264 DetachReattachTest(window.get(), 0, 1); |
264 } | 265 } |
265 | 266 |
266 TEST_F(PanelWindowResizerTest, PanelDetachReattachMultipleDisplays) { | 267 TEST_F(PanelWindowResizerTest, PanelDetachReattachMultipleDisplays) { |
267 if (!SupportsMultipleDisplays()) | 268 if (!SupportsMultipleDisplays()) |
268 return; | 269 return; |
269 | 270 |
270 UpdateDisplay("600x400,600x400"); | 271 UpdateDisplay("600x400,600x400"); |
271 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); | 272 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
272 scoped_ptr<aura::Window> window( | 273 scoped_ptr<aura::Window> window( |
273 CreatePanelWindow(gfx::Rect(600, 0, 201, 201))); | 274 CreatePanelWindow(gfx::Point(600, 0))); |
274 EXPECT_EQ(root_windows[1], window->GetRootWindow()); | 275 EXPECT_EQ(root_windows[1], window->GetRootWindow()); |
275 DetachReattachTest(window.get(), 0, -1); | 276 DetachReattachTest(window.get(), 0, -1); |
276 } | 277 } |
277 | 278 |
278 TEST_F(PanelWindowResizerTest, DetachThenDragAcrossDisplays) { | 279 TEST_F(PanelWindowResizerTest, DetachThenDragAcrossDisplays) { |
279 if (!SupportsMultipleDisplays()) | 280 if (!SupportsMultipleDisplays()) |
280 return; | 281 return; |
281 | 282 |
282 UpdateDisplay("600x400,600x400"); | 283 UpdateDisplay("600x400,600x400"); |
283 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); | 284 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
284 scoped_ptr<aura::Window> window( | 285 scoped_ptr<aura::Window> window( |
285 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 286 CreatePanelWindow(gfx::Point(0, 0))); |
286 gfx::Rect initial_bounds = window->GetBoundsInScreen(); | 287 gfx::Rect initial_bounds = window->GetBoundsInScreen(); |
287 EXPECT_EQ(root_windows[0], window->GetRootWindow()); | 288 EXPECT_EQ(root_windows[0], window->GetRootWindow()); |
288 DragStart(window.get()); | 289 DragStart(window.get()); |
289 DragMove(0, -100); | 290 DragMove(0, -100); |
290 DragEnd(); | 291 DragEnd(); |
291 EXPECT_EQ(root_windows[0], window->GetRootWindow()); | 292 EXPECT_EQ(root_windows[0], window->GetRootWindow()); |
292 EXPECT_EQ(initial_bounds.x(), window->GetBoundsInScreen().x()); | 293 EXPECT_EQ(initial_bounds.x(), window->GetBoundsInScreen().x()); |
293 EXPECT_EQ(initial_bounds.y() - 100, window->GetBoundsInScreen().y()); | 294 EXPECT_EQ(initial_bounds.y() - 100, window->GetBoundsInScreen().y()); |
294 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); | 295 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); |
295 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, | 296 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, |
(...skipping 10 matching lines...) Expand all Loading... |
306 window->parent()->id()); | 307 window->parent()->id()); |
307 } | 308 } |
308 | 309 |
309 TEST_F(PanelWindowResizerTest, DetachAcrossDisplays) { | 310 TEST_F(PanelWindowResizerTest, DetachAcrossDisplays) { |
310 if (!SupportsMultipleDisplays()) | 311 if (!SupportsMultipleDisplays()) |
311 return; | 312 return; |
312 | 313 |
313 UpdateDisplay("600x400,600x400"); | 314 UpdateDisplay("600x400,600x400"); |
314 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); | 315 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
315 scoped_ptr<aura::Window> window( | 316 scoped_ptr<aura::Window> window( |
316 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 317 CreatePanelWindow(gfx::Point(0, 0))); |
317 gfx::Rect initial_bounds = window->GetBoundsInScreen(); | 318 gfx::Rect initial_bounds = window->GetBoundsInScreen(); |
318 EXPECT_EQ(root_windows[0], window->GetRootWindow()); | 319 EXPECT_EQ(root_windows[0], window->GetRootWindow()); |
319 DragStart(window.get()); | 320 DragStart(window.get()); |
320 DragMove(500, -100); | 321 DragMove(500, -100); |
321 DragEnd(); | 322 DragEnd(); |
322 EXPECT_EQ(root_windows[1], window->GetRootWindow()); | 323 EXPECT_EQ(root_windows[1], window->GetRootWindow()); |
323 EXPECT_EQ(initial_bounds.x() + 500, window->GetBoundsInScreen().x()); | 324 EXPECT_EQ(initial_bounds.x() + 500, window->GetBoundsInScreen().x()); |
324 EXPECT_EQ(initial_bounds.y() - 100, window->GetBoundsInScreen().y()); | 325 EXPECT_EQ(initial_bounds.y() - 100, window->GetBoundsInScreen().y()); |
325 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); | 326 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); |
326 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, | 327 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, |
327 window->parent()->id()); | 328 window->parent()->id()); |
328 } | 329 } |
329 | 330 |
330 TEST_F(PanelWindowResizerTest, DetachThenAttachToSecondDisplay) { | 331 TEST_F(PanelWindowResizerTest, DetachThenAttachToSecondDisplay) { |
331 if (!SupportsMultipleDisplays()) | 332 if (!SupportsMultipleDisplays()) |
332 return; | 333 return; |
333 | 334 |
334 UpdateDisplay("600x400,600x600"); | 335 UpdateDisplay("600x400,600x600"); |
335 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); | 336 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
336 scoped_ptr<aura::Window> window( | 337 scoped_ptr<aura::Window> window( |
337 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 338 CreatePanelWindow(gfx::Point(0, 0))); |
338 gfx::Rect initial_bounds = window->GetBoundsInScreen(); | 339 gfx::Rect initial_bounds = window->GetBoundsInScreen(); |
339 EXPECT_EQ(root_windows[0], window->GetRootWindow()); | 340 EXPECT_EQ(root_windows[0], window->GetRootWindow()); |
340 | 341 |
341 // Detach the window. | 342 // Detach the window. |
342 DragStart(window.get()); | 343 DragStart(window.get()); |
343 DragMove(0, -100); | 344 DragMove(0, -100); |
344 DragEnd(); | 345 DragEnd(); |
345 EXPECT_EQ(root_windows[0], window->GetRootWindow()); | 346 EXPECT_EQ(root_windows[0], window->GetRootWindow()); |
346 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); | 347 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); |
347 | 348 |
(...skipping 12 matching lines...) Expand all Loading... |
360 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); | 361 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); |
361 } | 362 } |
362 | 363 |
363 TEST_F(PanelWindowResizerTest, AttachToSecondDisplay) { | 364 TEST_F(PanelWindowResizerTest, AttachToSecondDisplay) { |
364 if (!SupportsMultipleDisplays()) | 365 if (!SupportsMultipleDisplays()) |
365 return; | 366 return; |
366 | 367 |
367 UpdateDisplay("600x400,600x600"); | 368 UpdateDisplay("600x400,600x600"); |
368 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); | 369 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
369 scoped_ptr<aura::Window> window( | 370 scoped_ptr<aura::Window> window( |
370 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 371 CreatePanelWindow(gfx::Point(0, 0))); |
371 gfx::Rect initial_bounds = window->GetBoundsInScreen(); | 372 gfx::Rect initial_bounds = window->GetBoundsInScreen(); |
372 EXPECT_EQ(root_windows[0], window->GetRootWindow()); | 373 EXPECT_EQ(root_windows[0], window->GetRootWindow()); |
373 | 374 |
374 // Drag the window just above the other display's launcher. | 375 // Drag the window just above the other display's launcher. |
375 DragStart(window.get()); | 376 DragStart(window.get()); |
376 DragMove(500, 195); | 377 DragMove(500, 195); |
377 EXPECT_EQ(initial_bounds.x() + 500, window->GetBoundsInScreen().x()); | 378 EXPECT_EQ(initial_bounds.x() + 500, window->GetBoundsInScreen().x()); |
378 | 379 |
379 // Should stick to other launcher. | 380 // Should stick to other launcher. |
380 EXPECT_EQ(initial_bounds.y() + 200, window->GetBoundsInScreen().y()); | 381 EXPECT_EQ(initial_bounds.y() + 200, window->GetBoundsInScreen().y()); |
381 DragEnd(); | 382 DragEnd(); |
382 | 383 |
383 // When dropped should move to second display's panel container. | 384 // When dropped should move to second display's panel container. |
384 EXPECT_EQ(root_windows[1], window->GetRootWindow()); | 385 EXPECT_EQ(root_windows[1], window->GetRootWindow()); |
385 EXPECT_TRUE(wm::GetWindowState(window.get())->panel_attached()); | 386 EXPECT_TRUE(wm::GetWindowState(window.get())->panel_attached()); |
386 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); | 387 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); |
387 } | 388 } |
388 | 389 |
389 TEST_F(PanelWindowResizerTest, RevertDragRestoresAttachment) { | 390 TEST_F(PanelWindowResizerTest, RevertDragRestoresAttachment) { |
390 scoped_ptr<aura::Window> window( | 391 scoped_ptr<aura::Window> window( |
391 CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 392 CreatePanelWindow(gfx::Point(0, 0))); |
392 EXPECT_TRUE(wm::GetWindowState(window.get())->panel_attached()); | 393 EXPECT_TRUE(wm::GetWindowState(window.get())->panel_attached()); |
393 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); | 394 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); |
394 DragStart(window.get()); | 395 DragStart(window.get()); |
395 DragMove(0, -100); | 396 DragMove(0, -100); |
396 DragRevert(); | 397 DragRevert(); |
397 EXPECT_TRUE(wm::GetWindowState(window.get())->panel_attached()); | 398 EXPECT_TRUE(wm::GetWindowState(window.get())->panel_attached()); |
398 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); | 399 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); |
399 | 400 |
400 // Detach panel. | 401 // Detach panel. |
401 DragStart(window.get()); | 402 DragStart(window.get()); |
402 DragMove(0, -100); | 403 DragMove(0, -100); |
403 DragEnd(); | 404 DragEnd(); |
404 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); | 405 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); |
405 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, | 406 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, |
406 window->parent()->id()); | 407 window->parent()->id()); |
407 | 408 |
408 // Drag back to launcher. | 409 // Drag back to launcher. |
409 DragStart(window.get()); | 410 DragStart(window.get()); |
410 DragMove(0, 100); | 411 DragMove(0, 100); |
411 | 412 |
412 // When the drag is reverted it should remain detached. | 413 // When the drag is reverted it should remain detached. |
413 DragRevert(); | 414 DragRevert(); |
414 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); | 415 EXPECT_FALSE(wm::GetWindowState(window.get())->panel_attached()); |
415 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, | 416 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, |
416 window->parent()->id()); | 417 window->parent()->id()); |
417 } | 418 } |
418 | 419 |
419 TEST_F(PanelWindowResizerTest, DragMovesToPanelLayer) { | 420 TEST_F(PanelWindowResizerTest, DragMovesToPanelLayer) { |
420 scoped_ptr<aura::Window> window(CreatePanelWindow(gfx::Rect(0, 0, 201, 201))); | 421 scoped_ptr<aura::Window> window(CreatePanelWindow(gfx::Point(0, 0))); |
421 DragStart(window.get()); | 422 DragStart(window.get()); |
422 DragMove(0, -100); | 423 DragMove(0, -100); |
423 DragEnd(); | 424 DragEnd(); |
424 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, | 425 EXPECT_EQ(internal::kShellWindowId_DefaultContainer, |
425 window->parent()->id()); | 426 window->parent()->id()); |
426 | 427 |
427 // While moving the panel window should be moved to the panel container. | 428 // While moving the panel window should be moved to the panel container. |
428 DragStart(window.get()); | 429 DragStart(window.get()); |
429 DragMove(20, 0); | 430 DragMove(20, 0); |
430 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); | 431 EXPECT_EQ(internal::kShellWindowId_PanelContainer, window->parent()->id()); |
(...skipping 18 matching lines...) Expand all Loading... |
449 ash::Shell* shell = ash::Shell::GetInstance(); | 450 ash::Shell* shell = ash::Shell::GetInstance(); |
450 shell->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, shell->GetPrimaryRootWindow()); | 451 shell->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, shell->GetPrimaryRootWindow()); |
451 DragAlongShelfReorder(0, -1); | 452 DragAlongShelfReorder(0, -1); |
452 } | 453 } |
453 | 454 |
454 INSTANTIATE_TEST_CASE_P(LtrRtl, PanelWindowResizerTextDirectionTest, | 455 INSTANTIATE_TEST_CASE_P(LtrRtl, PanelWindowResizerTextDirectionTest, |
455 testing::Bool()); | 456 testing::Bool()); |
456 | 457 |
457 } // namespace internal | 458 } // namespace internal |
458 } // namespace ash | 459 } // namespace ash |
OLD | NEW |