| 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/screenshot_delegate.h" | 9 #include "ash/screenshot_delegate.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 EXPECT_EQ(brightness_up, delegate->last_accelerator()); | 549 EXPECT_EQ(brightness_up, delegate->last_accelerator()); |
| 550 } | 550 } |
| 551 #endif | 551 #endif |
| 552 #if !defined(NDEBUG) | 552 #if !defined(NDEBUG) |
| 553 // RotateScreen | 553 // RotateScreen |
| 554 EXPECT_TRUE(GetController()->Process( | 554 EXPECT_TRUE(GetController()->Process( |
| 555 ui::Accelerator(ui::VKEY_HOME, false, true, false))); | 555 ui::Accelerator(ui::VKEY_HOME, false, true, false))); |
| 556 // ToggleCompactWindowMode | 556 // ToggleCompactWindowMode |
| 557 EXPECT_TRUE(GetController()->Process( | 557 EXPECT_TRUE(GetController()->Process( |
| 558 ui::Accelerator(ui::VKEY_A, false, true, true))); | 558 ui::Accelerator(ui::VKEY_A, false, true, true))); |
| 559 // ToggleDesktopBackgroundMode |
| 560 EXPECT_TRUE(GetController()->Process( |
| 561 ui::Accelerator(ui::VKEY_B, false, true, true))); |
| 559 #if !defined(OS_LINUX) | 562 #if !defined(OS_LINUX) |
| 560 // ToggleDesktopFullScreen (not implemented yet on Linux) | 563 // ToggleDesktopFullScreen (not implemented yet on Linux) |
| 561 EXPECT_TRUE(GetController()->Process( | 564 EXPECT_TRUE(GetController()->Process( |
| 562 ui::Accelerator(ui::VKEY_F11, false, true, false))); | 565 ui::Accelerator(ui::VKEY_F11, false, true, false))); |
| 563 #endif | 566 #endif |
| 564 | 567 |
| 565 // Exit | 568 // Exit |
| 566 EXPECT_TRUE(GetController()->Process( | 569 EXPECT_TRUE(GetController()->Process( |
| 567 ui::Accelerator(ui::VKEY_Q, true, true ,false))); | 570 ui::Accelerator(ui::VKEY_Q, true, true ,false))); |
| 568 #endif | 571 #endif |
| 569 | 572 |
| 570 #if defined(OS_CHROMEOS) | 573 #if defined(OS_CHROMEOS) |
| 571 EXPECT_TRUE(GetController()->Process( | 574 EXPECT_TRUE(GetController()->Process( |
| 572 ui::Accelerator(ui::VKEY_L, true, true, false))); | 575 ui::Accelerator(ui::VKEY_L, true, true, false))); |
| 573 #endif | 576 #endif |
| 574 } | 577 } |
| 575 | 578 |
| 576 } // namespace test | 579 } // namespace test |
| 577 } // namespace ash | 580 } // namespace ash |
| OLD | NEW |