| Index: ash/accelerators/accelerator_controller.cc
|
| diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
|
| index 6450c8778338494208272fa9be53dd3bd199fd5a..9bf6a3580f73d62fa33f972df936288cba29681b 100644
|
| --- a/ash/accelerators/accelerator_controller.cc
|
| +++ b/ash/accelerators/accelerator_controller.cc
|
| @@ -12,6 +12,7 @@
|
| #include "ash/accelerators/accelerator_table.h"
|
| #include "ash/ash_switches.h"
|
| #include "ash/caps_lock_delegate.h"
|
| +#include "ash/debug.h"
|
| #include "ash/desktop_background/desktop_background_controller.h"
|
| #include "ash/desktop_background/user_wallpaper_delegate.h"
|
| #include "ash/display/display_controller.h"
|
| @@ -374,6 +375,10 @@ void AcceleratorController::Init() {
|
|
|
| RegisterAccelerators(kAcceleratorData, kAcceleratorDataLength);
|
|
|
| +#if !defined(NDEBUG)
|
| + RegisterAccelerators(kDesktopAcceleratorData, kDesktopAcceleratorDataLength);
|
| +#endif
|
| +
|
| if (DebugShortcutsEnabled())
|
| RegisterAccelerators(kDebugAcceleratorData, kDebugAcceleratorDataLength);
|
|
|
| @@ -814,9 +819,18 @@ bool AcceleratorController::PerformAction(int action,
|
| return HandleToggleDesktopBackgroundMode();
|
| case TOGGLE_ROOT_WINDOW_FULL_SCREEN:
|
| return HandleToggleRootWindowFullScreen();
|
| - case DISPLAY_TOGGLE_SCALE:
|
| + case DEBUG_TOGGLE_DEVICE_SCALE_FACTOR:
|
| internal::DisplayManager::ToggleDisplayScaleFactor();
|
| return true;
|
| + case DEBUG_TOGGLE_SHOW_DEBUG_BORDERS:
|
| + ash::debug::ToggleShowDebugBorders();
|
| + return true;
|
| + case DEBUG_TOGGLE_SHOW_FPS_COUNTER:
|
| + ash::debug::ToggleShowFpsCounter();
|
| + return true;
|
| + case DEBUG_TOGGLE_SHOW_PAINT_RECTS:
|
| + ash::debug::ToggleShowPaintRects();
|
| + return true;
|
| case MAGNIFY_SCREEN_ZOOM_IN:
|
| return HandleMagnifyScreen(1);
|
| case MAGNIFY_SCREEN_ZOOM_OUT:
|
|
|