| 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 #include "ash/brightness_control_delegate.h" | 6 #include "ash/brightness_control_delegate.h" |
| 7 #include "ash/caps_lock_delegate.h" | 7 #include "ash/caps_lock_delegate.h" |
| 8 #include "ash/ime/event.h" | 8 #include "ash/ime/event.h" |
| 9 #include "ash/ime_control_delegate.h" | 9 #include "ash/ime_control_delegate.h" |
| 10 #include "ash/screenshot_delegate.h" | 10 #include "ash/screenshot_delegate.h" |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 EXPECT_EQ(brightness_up, delegate->last_accelerator()); | 630 EXPECT_EQ(brightness_up, delegate->last_accelerator()); |
| 631 } | 631 } |
| 632 #endif | 632 #endif |
| 633 #if !defined(NDEBUG) | 633 #if !defined(NDEBUG) |
| 634 // RotateScreen | 634 // RotateScreen |
| 635 EXPECT_TRUE(GetController()->Process( | 635 EXPECT_TRUE(GetController()->Process( |
| 636 PostImeAccelerator(ui::VKEY_HOME, false, true, false))); | 636 PostImeAccelerator(ui::VKEY_HOME, false, true, false))); |
| 637 // ToggleCompactWindowMode | 637 // ToggleCompactWindowMode |
| 638 EXPECT_TRUE(GetController()->Process( | 638 EXPECT_TRUE(GetController()->Process( |
| 639 PostImeAccelerator(ui::VKEY_A, false, true, true))); | 639 PostImeAccelerator(ui::VKEY_A, false, true, true))); |
| 640 // ToggleDesktopBackgroundMode |
| 641 EXPECT_TRUE(GetController()->Process( |
| 642 PostImeAccelerator(ui::VKEY_B, false, true, true))); |
| 640 #if !defined(OS_LINUX) | 643 #if !defined(OS_LINUX) |
| 641 // ToggleDesktopFullScreen (not implemented yet on Linux) | 644 // ToggleDesktopFullScreen (not implemented yet on Linux) |
| 642 EXPECT_TRUE(GetController()->Process( | 645 EXPECT_TRUE(GetController()->Process( |
| 643 PostImeAccelerator(ui::VKEY_F11, false, true, false))); | 646 PostImeAccelerator(ui::VKEY_F11, false, true, false))); |
| 644 #endif | 647 #endif |
| 645 | 648 |
| 646 // Exit | 649 // Exit |
| 647 EXPECT_TRUE(GetController()->Process( | 650 EXPECT_TRUE(GetController()->Process( |
| 648 PostImeAccelerator(ui::VKEY_Q, true, true ,false))); | 651 PostImeAccelerator(ui::VKEY_Q, true, true ,false))); |
| 649 #endif | 652 #endif |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 EXPECT_FALSE(GetController()->Process(shift_alt_x_press_post)); | 782 EXPECT_FALSE(GetController()->Process(shift_alt_x_press_post)); |
| 780 EXPECT_FALSE(GetController()->Process(shift_alt_x)); | 783 EXPECT_FALSE(GetController()->Process(shift_alt_x)); |
| 781 EXPECT_FALSE(GetController()->Process(shift_alt_x_post)); | 784 EXPECT_FALSE(GetController()->Process(shift_alt_x_post)); |
| 782 EXPECT_FALSE(GetController()->Process(shift_alt)); | 785 EXPECT_FALSE(GetController()->Process(shift_alt)); |
| 783 EXPECT_EQ(2, delegate->handle_next_ime_count()); | 786 EXPECT_EQ(2, delegate->handle_next_ime_count()); |
| 784 } | 787 } |
| 785 } | 788 } |
| 786 | 789 |
| 787 } // namespace test | 790 } // namespace test |
| 788 } // namespace ash | 791 } // namespace ash |
| OLD | NEW |