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

Side by Side Diff: ash/accelerators/accelerator_table.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, 7 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/accelerators/accelerator_table.h ('k') | ash/ash.gyp » ('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_table.h" 5 #include "ash/accelerators/accelerator_table.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 const AcceleratorData kDebugAcceleratorData[] = { 200 const AcceleratorData kDebugAcceleratorData[] = {
201 { true, ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 201 { true, ui::VKEY_L, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
202 PRINT_LAYER_HIERARCHY }, 202 PRINT_LAYER_HIERARCHY },
203 { true, ui::VKEY_V, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 203 { true, ui::VKEY_V, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
204 PRINT_VIEW_HIERARCHY }, 204 PRINT_VIEW_HIERARCHY },
205 { true, ui::VKEY_W, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 205 { true, ui::VKEY_W, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
206 PRINT_WINDOW_HIERARCHY }, 206 PRINT_WINDOW_HIERARCHY },
207 { true, ui::VKEY_S, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 207 { true, ui::VKEY_S, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
208 DEBUG_TOGGLE_DEVICE_SCALE_FACTOR }, 208 DEBUG_TOGGLE_DEVICE_SCALE_FACTOR },
209 { true, ui::VKEY_B, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
210 DEBUG_TOGGLE_SHOW_DEBUG_BORDERS },
211 { true, ui::VKEY_F, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
212 DEBUG_TOGGLE_SHOW_FPS_COUNTER },
209 { true, ui::VKEY_P, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, 213 { true, ui::VKEY_P, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN,
210 DEBUG_TOGGLE_SHOW_PAINT_RECTS }, 214 DEBUG_TOGGLE_SHOW_PAINT_RECTS },
211 }; 215 };
212 216
213 const size_t kDebugAcceleratorDataLength = arraysize(kDebugAcceleratorData); 217 const size_t kDebugAcceleratorDataLength = arraysize(kDebugAcceleratorData);
214 218
215 const AcceleratorAction kReservedActions[] = { 219 const AcceleratorAction kReservedActions[] = {
216 // Window cycling accelerators. 220 // Window cycling accelerators.
217 CYCLE_BACKWARD_MRU, // Shift+Alt+Tab 221 CYCLE_BACKWARD_MRU, // Shift+Alt+Tab
218 CYCLE_FORWARD_MRU, // Alt+Tab 222 CYCLE_FORWARD_MRU, // Alt+Tab
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 #if defined(OS_CHROMEOS) 366 #if defined(OS_CHROMEOS)
363 CYCLE_DISPLAY_MODE, 367 CYCLE_DISPLAY_MODE,
364 DISABLE_GPU_WATCHDOG, 368 DISABLE_GPU_WATCHDOG,
365 #endif // defined(OS_CHROMEOS) 369 #endif // defined(OS_CHROMEOS)
366 }; 370 };
367 371
368 const size_t kActionsAllowedInAppModeLength = 372 const size_t kActionsAllowedInAppModeLength =
369 arraysize(kActionsAllowedInAppMode); 373 arraysize(kActionsAllowedInAppMode);
370 374
371 } // namespace ash 375 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698