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

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

Issue 14386024: Add debug shortcuts that toggles options to shows debug borders and fps counters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « ash/DEPS ('k') | ash/accelerators/accelerator_table.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <iostream> 9 #include <iostream>
10 #include <string> 10 #include <string>
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 return HandleRotateActiveWindow(); 809 return HandleRotateActiveWindow();
810 case ROTATE_SCREEN: 810 case ROTATE_SCREEN:
811 return HandleRotateScreen(); 811 return HandleRotateScreen();
812 case TOGGLE_DESKTOP_BACKGROUND_MODE: 812 case TOGGLE_DESKTOP_BACKGROUND_MODE:
813 return HandleToggleDesktopBackgroundMode(); 813 return HandleToggleDesktopBackgroundMode();
814 case TOGGLE_ROOT_WINDOW_FULL_SCREEN: 814 case TOGGLE_ROOT_WINDOW_FULL_SCREEN:
815 return HandleToggleRootWindowFullScreen(); 815 return HandleToggleRootWindowFullScreen();
816 case DEBUG_TOGGLE_DEVICE_SCALE_FACTOR: 816 case DEBUG_TOGGLE_DEVICE_SCALE_FACTOR:
817 internal::DisplayManager::ToggleDisplayScaleFactor(); 817 internal::DisplayManager::ToggleDisplayScaleFactor();
818 return true; 818 return true;
819 case DEBUG_TOGGLE_SHOW_DEBUG_BORDERS:
820 ash::debug::ToggleShowDebugBorders();
821 return true;
822 case DEBUG_TOGGLE_SHOW_FPS_COUNTER:
823 ash::debug::ToggleShowFpsCounter();
824 return true;
819 case DEBUG_TOGGLE_SHOW_PAINT_RECTS: 825 case DEBUG_TOGGLE_SHOW_PAINT_RECTS:
820 ash::debug::ToggleShowPaintRects(); 826 ash::debug::ToggleShowPaintRects();
821 return true; 827 return true;
822 case MAGNIFY_SCREEN_ZOOM_IN: 828 case MAGNIFY_SCREEN_ZOOM_IN:
823 return HandleMagnifyScreen(1); 829 return HandleMagnifyScreen(1);
824 case MAGNIFY_SCREEN_ZOOM_OUT: 830 case MAGNIFY_SCREEN_ZOOM_OUT:
825 return HandleMagnifyScreen(-1); 831 return HandleMagnifyScreen(-1);
826 case MEDIA_NEXT_TRACK: 832 case MEDIA_NEXT_TRACK:
827 return HandleMediaNextTrack(); 833 return HandleMediaNextTrack();
828 case MEDIA_PLAY_PAUSE: 834 case MEDIA_PLAY_PAUSE:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 keyboard_brightness_control_delegate) { 920 keyboard_brightness_control_delegate) {
915 keyboard_brightness_control_delegate_ = 921 keyboard_brightness_control_delegate_ =
916 keyboard_brightness_control_delegate.Pass(); 922 keyboard_brightness_control_delegate.Pass();
917 } 923 }
918 924
919 bool AcceleratorController::CanHandleAccelerators() const { 925 bool AcceleratorController::CanHandleAccelerators() const {
920 return true; 926 return true;
921 } 927 }
922 928
923 } // namespace ash 929 } // namespace ash
OLDNEW
« no previous file with comments | « ash/DEPS ('k') | ash/accelerators/accelerator_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698