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

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

Issue 1138523006: Enable keyboard accelerators while a menu is open (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 3 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
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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 WINDOW_CYCLE_SNAP_DOCK_RIGHT, 420 WINDOW_CYCLE_SNAP_DOCK_RIGHT,
421 WINDOW_MINIMIZE, 421 WINDOW_MINIMIZE,
422 TOGGLE_FULLSCREEN, 422 TOGGLE_FULLSCREEN,
423 TOGGLE_MAXIMIZED, 423 TOGGLE_MAXIMIZED,
424 WINDOW_POSITION_CENTER, 424 WINDOW_POSITION_CENTER,
425 ROTATE_WINDOW, 425 ROTATE_WINDOW,
426 }; 426 };
427 427
428 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow); 428 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow);
429 429
430 const AcceleratorAction kActionsKeepingMenuOpen[] = {
431 MEDIA_NEXT_TRACK,
432 MEDIA_PLAY_PAUSE,
433 MEDIA_PREV_TRACK,
434 NEXT_IME,
435 PREVIOUS_IME,
436 PRINT_UI_HIERARCHIES,
437 SWITCH_IME,
438 TAKE_PARTIAL_SCREENSHOT,
439 TAKE_SCREENSHOT,
440 #if defined(OS_CHROMEOS)
441 BRIGHTNESS_DOWN,
442 BRIGHTNESS_UP,
443 DISABLE_CAPS_LOCK,
444 DISABLE_GPU_WATCHDOG,
445 KEYBOARD_BRIGHTNESS_DOWN,
446 KEYBOARD_BRIGHTNESS_UP,
447 SILENCE_SPOKEN_FEEDBACK,
448 TOGGLE_CAPS_LOCK,
449 TOGGLE_SPOKEN_FEEDBACK,
450 TOGGLE_WIFI,
451 VOLUME_DOWN,
452 VOLUME_MUTE,
453 VOLUME_UP,
454 #endif // defined(OS_CHROMEOS)
455 };
456
457 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen);
458
430 } // namespace ash 459 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698