| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/accelerators/accelerator_controller.h" | 5 #include "ash/accelerators/accelerator_controller.h" |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_table.h" | 7 #include "ash/accelerators/accelerator_table.h" |
| 8 #include "ash/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
| 9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
| 10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
| 11 #include "ash/ime_control_delegate.h" | 11 #include "ash/ime_control_delegate.h" |
| 12 #include "ash/screen_util.h" | 12 #include "ash/screen_util.h" |
| 13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
| 14 #include "ash/shell_window_ids.h" | 14 #include "ash/shell_window_ids.h" |
| 15 #include "ash/system/brightness_control_delegate.h" | 15 #include "ash/system/brightness_control_delegate.h" |
| 16 #include "ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h" | 16 #include "ash/system/keyboard_brightness/keyboard_brightness_control_delegate.h" |
| 17 #include "ash/system/tray/system_tray_delegate.h" | 17 #include "ash/system/tray/system_tray_delegate.h" |
| 18 #include "ash/test/ash_test_base.h" | 18 #include "ash/test/ash_test_base.h" |
| 19 #include "ash/test/display_manager_test_api.h" | 19 #include "ash/test/display_manager_test_api.h" |
| 20 #include "ash/test/test_screenshot_delegate.h" | 20 #include "ash/test/test_screenshot_delegate.h" |
| 21 #include "ash/test/test_session_state_animator.h" | 21 #include "ash/test/test_session_state_animator.h" |
| 22 #include "ash/test/test_shelf_delegate.h" |
| 22 #include "ash/test/test_shell_delegate.h" | 23 #include "ash/test/test_shell_delegate.h" |
| 23 #include "ash/test/test_volume_control_delegate.h" | 24 #include "ash/test/test_volume_control_delegate.h" |
| 24 #include "ash/volume_control_delegate.h" | 25 #include "ash/volume_control_delegate.h" |
| 25 #include "ash/wm/lock_state_controller.h" | 26 #include "ash/wm/lock_state_controller.h" |
| 27 #include "ash/wm/panels/panel_layout_manager.h" |
| 26 #include "ash/wm/window_state.h" | 28 #include "ash/wm/window_state.h" |
| 27 #include "ash/wm/window_util.h" | 29 #include "ash/wm/window_util.h" |
| 28 #include "ash/wm/wm_event.h" | 30 #include "ash/wm/wm_event.h" |
| 29 #include "base/command_line.h" | 31 #include "base/command_line.h" |
| 30 #include "ui/aura/client/aura_constants.h" | 32 #include "ui/aura/client/aura_constants.h" |
| 31 #include "ui/aura/test/test_window_delegate.h" | 33 #include "ui/aura/test/test_window_delegate.h" |
| 32 #include "ui/aura/test/test_windows.h" | 34 #include "ui/aura/test/test_windows.h" |
| 33 #include "ui/aura/window.h" | 35 #include "ui/aura/window.h" |
| 34 #include "ui/events/event.h" | 36 #include "ui/events/event.h" |
| 35 #include "ui/events/event_processor.h" | 37 #include "ui/events/event_processor.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 } | 263 } |
| 262 static bool is_ui_shown(ExitWarningHandler* ewh) { | 264 static bool is_ui_shown(ExitWarningHandler* ewh) { |
| 263 return !!ewh->widget_; | 265 return !!ewh->widget_; |
| 264 } | 266 } |
| 265 static bool is_idle(ExitWarningHandler* ewh) { | 267 static bool is_idle(ExitWarningHandler* ewh) { |
| 266 return ewh->state_ == ExitWarningHandler::IDLE; | 268 return ewh->state_ == ExitWarningHandler::IDLE; |
| 267 } | 269 } |
| 268 static bool is_exiting(ExitWarningHandler* ewh) { | 270 static bool is_exiting(ExitWarningHandler* ewh) { |
| 269 return ewh->state_ == ExitWarningHandler::EXITING; | 271 return ewh->state_ == ExitWarningHandler::EXITING; |
| 270 } | 272 } |
| 273 aura::Window* CreatePanel() { |
| 274 aura::Window* window = |
| 275 CreateTestWindowInShellWithDelegateAndType(NULL, |
| 276 ui::wm::WINDOW_TYPE_PANEL, 0, gfx::Rect(5, 5, 20, 20)); |
| 277 test::TestShelfDelegate* shelf_delegate = |
| 278 test::TestShelfDelegate::instance(); |
| 279 shelf_delegate->AddShelfItem(window); |
| 280 PanelLayoutManager* manager = static_cast<PanelLayoutManager*>( |
| 281 Shell::GetContainer(window->GetRootWindow(), |
| 282 kShellWindowId_PanelContainer)->layout_manager()); |
| 283 manager->Relayout(); |
| 284 return window; |
| 285 } |
| 271 | 286 |
| 272 private: | 287 private: |
| 273 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerTest); | 288 DISALLOW_COPY_AND_ASSIGN(AcceleratorControllerTest); |
| 274 }; | 289 }; |
| 275 | 290 |
| 276 AcceleratorController* AcceleratorControllerTest::GetController() { | 291 AcceleratorController* AcceleratorControllerTest::GetController() { |
| 277 return Shell::GetInstance()->accelerator_controller(); | 292 return Shell::GetInstance()->accelerator_controller(); |
| 278 } | 293 } |
| 279 | 294 |
| 280 #if !defined(OS_WIN) | 295 #if !defined(OS_WIN) |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 TEST_F(AcceleratorControllerTest, WindowSnap) { | 443 TEST_F(AcceleratorControllerTest, WindowSnap) { |
| 429 scoped_ptr<aura::Window> window( | 444 scoped_ptr<aura::Window> window( |
| 430 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); | 445 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 431 const ui::Accelerator dummy; | 446 const ui::Accelerator dummy; |
| 432 | 447 |
| 433 wm::WindowState* window_state = wm::GetWindowState(window.get()); | 448 wm::WindowState* window_state = wm::GetWindowState(window.get()); |
| 434 | 449 |
| 435 window_state->Activate(); | 450 window_state->Activate(); |
| 436 | 451 |
| 437 { | 452 { |
| 438 GetController()->PerformAction(WINDOW_SNAP_LEFT, dummy); | 453 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 439 gfx::Rect expected_bounds = wm::GetDefaultLeftSnappedWindowBoundsInParent( | 454 gfx::Rect expected_bounds = wm::GetDefaultLeftSnappedWindowBoundsInParent( |
| 440 window.get()); | 455 window.get()); |
| 441 EXPECT_EQ(expected_bounds.ToString(), window->bounds().ToString()); | 456 EXPECT_EQ(expected_bounds.ToString(), window->bounds().ToString()); |
| 442 } | 457 } |
| 443 { | 458 { |
| 444 GetController()->PerformAction(WINDOW_SNAP_RIGHT, dummy); | 459 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 445 gfx::Rect expected_bounds = wm::GetDefaultRightSnappedWindowBoundsInParent( | 460 gfx::Rect expected_bounds = wm::GetDefaultRightSnappedWindowBoundsInParent( |
| 446 window.get()); | 461 window.get()); |
| 447 EXPECT_EQ(expected_bounds.ToString(), window->bounds().ToString()); | 462 EXPECT_EQ(expected_bounds.ToString(), window->bounds().ToString()); |
| 448 } | 463 } |
| 449 { | 464 { |
| 450 gfx::Rect normal_bounds = window_state->GetRestoreBoundsInParent(); | 465 gfx::Rect normal_bounds = window_state->GetRestoreBoundsInParent(); |
| 451 | 466 |
| 452 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); | 467 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); |
| 453 EXPECT_TRUE(window_state->IsMaximized()); | 468 EXPECT_TRUE(window_state->IsMaximized()); |
| 454 EXPECT_NE(normal_bounds.ToString(), window->bounds().ToString()); | 469 EXPECT_NE(normal_bounds.ToString(), window->bounds().ToString()); |
| 455 | 470 |
| 456 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); | 471 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); |
| 457 EXPECT_FALSE(window_state->IsMaximized()); | 472 EXPECT_FALSE(window_state->IsMaximized()); |
| 458 // Window gets restored to its restore bounds since side-maximized state | 473 // Window gets restored to its restore bounds since side-maximized state |
| 459 // is treated as a "maximized" state. | 474 // is treated as a "maximized" state. |
| 460 EXPECT_EQ(normal_bounds.ToString(), window->bounds().ToString()); | 475 EXPECT_EQ(normal_bounds.ToString(), window->bounds().ToString()); |
| 461 | 476 |
| 462 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); | 477 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); |
| 463 GetController()->PerformAction(WINDOW_SNAP_LEFT, dummy); | 478 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 464 EXPECT_FALSE(window_state->IsMaximized()); | 479 EXPECT_FALSE(window_state->IsMaximized()); |
| 465 | 480 |
| 466 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); | 481 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); |
| 467 GetController()->PerformAction(WINDOW_SNAP_RIGHT, dummy); | 482 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 468 EXPECT_FALSE(window_state->IsMaximized()); | 483 EXPECT_FALSE(window_state->IsMaximized()); |
| 469 | 484 |
| 470 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); | 485 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy); |
| 471 EXPECT_TRUE(window_state->IsMaximized()); | 486 EXPECT_TRUE(window_state->IsMaximized()); |
| 472 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); | 487 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); |
| 473 EXPECT_FALSE(window_state->IsMaximized()); | 488 EXPECT_FALSE(window_state->IsMaximized()); |
| 474 EXPECT_TRUE(window_state->IsMinimized()); | 489 EXPECT_TRUE(window_state->IsMinimized()); |
| 475 window_state->Restore(); | 490 window_state->Restore(); |
| 476 window_state->Activate(); | 491 window_state->Activate(); |
| 477 } | 492 } |
| 478 { | 493 { |
| 479 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); | 494 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); |
| 480 EXPECT_TRUE(window_state->IsMinimized()); | 495 EXPECT_TRUE(window_state->IsMinimized()); |
| 481 } | 496 } |
| 482 } | 497 } |
| 483 | 498 |
| 499 TEST_F(AcceleratorControllerTest, WindowSnapLeftDockLeftRestore) { |
| 500 scoped_ptr<aura::Window> window0( |
| 501 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 502 scoped_ptr<aura::Window> window1( |
| 503 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 504 const ui::Accelerator dummy; |
| 505 |
| 506 wm::WindowState* window1_state = wm::GetWindowState(window1.get()); |
| 507 window1_state->Activate(); |
| 508 |
| 509 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 510 gfx::Rect normal_bounds = window1_state->GetRestoreBoundsInParent(); |
| 511 gfx::Rect expected_bounds = wm::GetDefaultLeftSnappedWindowBoundsInParent( |
| 512 window1.get()); |
| 513 EXPECT_EQ(expected_bounds.ToString(), window1->bounds().ToString()); |
| 514 EXPECT_TRUE(window1_state->IsSnapped()); |
| 515 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 516 EXPECT_FALSE(window1_state->IsNormalOrSnapped()); |
| 517 EXPECT_TRUE(window1_state->IsDocked()); |
| 518 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 519 EXPECT_FALSE(window1_state->IsDocked()); |
| 520 EXPECT_EQ(normal_bounds.ToString(), window1->bounds().ToString()); |
| 521 } |
| 522 |
| 523 TEST_F(AcceleratorControllerTest, WindowSnapRightDockRightRestore) { |
| 524 scoped_ptr<aura::Window> window0( |
| 525 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 526 scoped_ptr<aura::Window> window1( |
| 527 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 528 const ui::Accelerator dummy; |
| 529 |
| 530 wm::WindowState* window1_state = wm::GetWindowState(window1.get()); |
| 531 window1_state->Activate(); |
| 532 |
| 533 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 534 gfx::Rect normal_bounds = window1_state->GetRestoreBoundsInParent(); |
| 535 gfx::Rect expected_bounds = |
| 536 wm::GetDefaultRightSnappedWindowBoundsInParent(window1.get()); |
| 537 EXPECT_EQ(expected_bounds.ToString(), window1->bounds().ToString()); |
| 538 EXPECT_TRUE(window1_state->IsSnapped()); |
| 539 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 540 EXPECT_FALSE(window1_state->IsNormalOrSnapped()); |
| 541 EXPECT_TRUE(window1_state->IsDocked()); |
| 542 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 543 EXPECT_FALSE(window1_state->IsDocked()); |
| 544 EXPECT_EQ(normal_bounds.ToString(), window1->bounds().ToString()); |
| 545 } |
| 546 |
| 547 TEST_F(AcceleratorControllerTest, WindowSnapLeftDockLeftSnapRight) { |
| 548 scoped_ptr<aura::Window> window0( |
| 549 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 550 scoped_ptr<aura::Window> window1( |
| 551 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 552 const ui::Accelerator dummy; |
| 553 |
| 554 wm::WindowState* window1_state = wm::GetWindowState(window1.get()); |
| 555 window1_state->Activate(); |
| 556 |
| 557 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 558 gfx::Rect expected_bounds = |
| 559 wm::GetDefaultLeftSnappedWindowBoundsInParent(window1.get()); |
| 560 gfx::Rect expected_bounds2 = |
| 561 wm::GetDefaultRightSnappedWindowBoundsInParent(window1.get()); |
| 562 EXPECT_EQ(expected_bounds.ToString(), window1->bounds().ToString()); |
| 563 EXPECT_TRUE(window1_state->IsSnapped()); |
| 564 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 565 EXPECT_FALSE(window1_state->IsNormalOrSnapped()); |
| 566 EXPECT_TRUE(window1_state->IsDocked()); |
| 567 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 568 EXPECT_FALSE(window1_state->IsDocked()); |
| 569 EXPECT_TRUE(window1_state->IsSnapped()); |
| 570 EXPECT_EQ(expected_bounds2.ToString(), window1->bounds().ToString()); |
| 571 } |
| 572 |
| 573 TEST_F(AcceleratorControllerTest, WindowDockLeftMinimizeWindowWithRestore) { |
| 574 scoped_ptr<aura::Window> window0( |
| 575 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 576 scoped_ptr<aura::Window> window1( |
| 577 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 578 const ui::Accelerator dummy; |
| 579 |
| 580 wm::WindowState* window1_state = wm::GetWindowState(window1.get()); |
| 581 window1_state->Activate(); |
| 582 |
| 583 scoped_ptr<aura::Window> window2( |
| 584 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 585 |
| 586 wm::WindowState* window2_state = wm::GetWindowState(window2.get()); |
| 587 |
| 588 scoped_ptr<aura::Window> window3( |
| 589 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 590 |
| 591 wm::WindowState* window3_state = wm::GetWindowState(window3.get()); |
| 592 window3_state->Activate(); |
| 593 |
| 594 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 595 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 596 gfx::Rect window3_docked_bounds = window3->bounds(); |
| 597 |
| 598 window2_state->Activate(); |
| 599 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 600 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 601 window1_state->Activate(); |
| 602 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 603 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 604 |
| 605 EXPECT_TRUE(window3_state->IsDocked()); |
| 606 EXPECT_TRUE(window2_state->IsDocked()); |
| 607 EXPECT_TRUE(window1_state->IsDocked()); |
| 608 EXPECT_TRUE(window3_state->IsMinimized()); |
| 609 |
| 610 window1_state->Activate(); |
| 611 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 612 window2_state->Activate(); |
| 613 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 614 window3_state->Unminimize(); |
| 615 EXPECT_FALSE(window1_state->IsDocked()); |
| 616 EXPECT_FALSE(window2_state->IsDocked()); |
| 617 EXPECT_TRUE(window3_state->IsDocked()); |
| 618 EXPECT_EQ(window3_docked_bounds.ToString(), window3->bounds().ToString()); |
| 619 } |
| 620 |
| 621 TEST_F(AcceleratorControllerTest, WindowPanelDockLeftDockRightRestore) { |
| 622 scoped_ptr<aura::Window> window0( |
| 623 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 624 |
| 625 scoped_ptr<aura::Window> window(CreatePanel()); |
| 626 const ui::Accelerator dummy; |
| 627 wm::WindowState* window_state = wm::GetWindowState(window.get()); |
| 628 window_state->Activate(); |
| 629 |
| 630 gfx::Rect window_restore_bounds2 = window->bounds(); |
| 631 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_LEFT, dummy); |
| 632 gfx::Rect expected_bounds = |
| 633 wm::GetDefaultLeftSnappedWindowBoundsInParent(window.get()); |
| 634 gfx::Rect window_restore_bounds = |
| 635 window_state->GetRestoreBoundsInScreen(); |
| 636 EXPECT_NE(expected_bounds.ToString(), window->bounds().ToString()); |
| 637 EXPECT_FALSE(window_state->IsSnapped()); |
| 638 EXPECT_FALSE(window_state->IsNormalOrSnapped()); |
| 639 EXPECT_TRUE(window_state->IsDocked()); |
| 640 window_state->Restore(); |
| 641 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 642 EXPECT_TRUE(window_state->IsDocked()); |
| 643 GetController()->PerformAction(WINDOW_CYCLE_SNAP_DOCK_RIGHT, dummy); |
| 644 EXPECT_FALSE(window_state->IsDocked()); |
| 645 EXPECT_EQ(window_restore_bounds.ToString(), |
| 646 window_restore_bounds2.ToString()); |
| 647 EXPECT_EQ(window_restore_bounds.ToString(), window->bounds().ToString()); |
| 648 } |
| 649 |
| 484 TEST_F(AcceleratorControllerTest, CenterWindowAccelerator) { | 650 TEST_F(AcceleratorControllerTest, CenterWindowAccelerator) { |
| 485 scoped_ptr<aura::Window> window( | 651 scoped_ptr<aura::Window> window( |
| 486 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); | 652 CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 487 const ui::Accelerator dummy; | 653 const ui::Accelerator dummy; |
| 488 wm::WindowState* window_state = wm::GetWindowState(window.get()); | 654 wm::WindowState* window_state = wm::GetWindowState(window.get()); |
| 489 window_state->Activate(); | 655 window_state->Activate(); |
| 490 | 656 |
| 491 // Center the window using accelerator. | 657 // Center the window using accelerator. |
| 492 GetController()->PerformAction(WINDOW_POSITION_CENTER, dummy); | 658 GetController()->PerformAction(WINDOW_POSITION_CENTER, dummy); |
| 493 gfx::Rect work_area = | 659 gfx::Rect work_area = |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 window.reset(CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); | 1489 window.reset(CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20))); |
| 1324 wm::ActivateWindow(window.get()); | 1490 wm::ActivateWindow(window.get()); |
| 1325 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); | 1491 GetController()->PerformAction(WINDOW_MINIMIZE, dummy); |
| 1326 delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE); | 1492 delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE); |
| 1327 GetController()->PerformAction(kActionsNeedingWindow[i], dummy); | 1493 GetController()->PerformAction(kActionsNeedingWindow[i], dummy); |
| 1328 EXPECT_NE(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_WINDOW_NEEDED); | 1494 EXPECT_NE(delegate->GetLastAccessibilityAlert(), A11Y_ALERT_WINDOW_NEEDED); |
| 1329 } | 1495 } |
| 1330 } | 1496 } |
| 1331 | 1497 |
| 1332 } // namespace ash | 1498 } // namespace ash |
| OLD | NEW |