Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 9414028: Aura: New window shadows, desktop background debug toggle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/shell.h » ('j') | ash/wm/shadow.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698