Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "ash/strings/grit/ash_strings.h" | 7 #include "ash/strings/grit/ash_strings.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace ash { | 10 namespace ash { |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 465 WINDOW_CYCLE_SNAP_DOCK_RIGHT, | 465 WINDOW_CYCLE_SNAP_DOCK_RIGHT, |
| 466 WINDOW_MINIMIZE, | 466 WINDOW_MINIMIZE, |
| 467 TOGGLE_FULLSCREEN, | 467 TOGGLE_FULLSCREEN, |
| 468 TOGGLE_MAXIMIZED, | 468 TOGGLE_MAXIMIZED, |
| 469 WINDOW_POSITION_CENTER, | 469 WINDOW_POSITION_CENTER, |
| 470 ROTATE_WINDOW, | 470 ROTATE_WINDOW, |
| 471 }; | 471 }; |
| 472 | 472 |
| 473 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow); | 473 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow); |
| 474 | 474 |
| 475 const AcceleratorAction kActionsKeepingMenuOpen[] = { | |
| 476 MEDIA_NEXT_TRACK, | |
| 477 MEDIA_PLAY_PAUSE, | |
| 478 MEDIA_PREV_TRACK, | |
| 479 NEXT_IME, | |
| 480 PREVIOUS_IME, | |
| 481 PRINT_UI_HIERARCHIES, | |
| 482 SWITCH_IME, | |
| 483 TAKE_PARTIAL_SCREENSHOT, | |
| 484 TAKE_SCREENSHOT, | |
| 485 #if defined(OS_CHROMEOS) | |
| 486 BRIGHTNESS_DOWN, | |
| 487 BRIGHTNESS_UP, | |
| 488 DISABLE_CAPS_LOCK, | |
| 489 KEYBOARD_BRIGHTNESS_DOWN, | |
| 490 KEYBOARD_BRIGHTNESS_UP, | |
| 491 SILENCE_SPOKEN_FEEDBACK, | |
| 492 TOGGLE_CAPS_LOCK, | |
| 493 TOGGLE_SPOKEN_FEEDBACK, | |
| 494 TOGGLE_WIFI, | |
|
pkotwicz
2015/09/10 21:58:49
TOGGLE_WIFI is a weird accelerator to include in t
afakhry
2015/09/10 23:31:02
Remember that this list contains actions that will
pkotwicz
2015/09/10 23:37:33
The way I think of it is that this list should be
| |
| 495 VOLUME_DOWN, | |
| 496 VOLUME_MUTE, | |
| 497 VOLUME_UP, | |
| 498 #endif // defined(OS_CHROMEOS) | |
| 499 }; | |
| 500 | |
| 501 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen); | |
| 502 | |
| 475 } // namespace ash | 503 } // namespace ash |
| OLD | NEW |