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/macros.h" | 8 #include "base/macros.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
546 TOGGLE_SPOKEN_FEEDBACK, | 546 TOGGLE_SPOKEN_FEEDBACK, |
547 TOGGLE_WIFI, | 547 TOGGLE_WIFI, |
548 VOLUME_DOWN, | 548 VOLUME_DOWN, |
549 VOLUME_MUTE, | 549 VOLUME_MUTE, |
550 VOLUME_UP, | 550 VOLUME_UP, |
551 #endif // defined(OS_CHROMEOS) | 551 #endif // defined(OS_CHROMEOS) |
552 }; | 552 }; |
553 | 553 |
554 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen); | 554 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen); |
555 | 555 |
556 const AcceleratorAction kActionsAllowedInPinnedMode[] = { | |
oshima
2016/06/18 04:47:44
This disables accelerators for IME, accessibility
hidehiko
2016/06/18 05:32:45
Ah, good point. I shared some with in_app_mode one
| |
557 TAKE_WINDOW_SCREENSHOT, | |
558 TAKE_PARTIAL_SCREENSHOT, | |
559 TAKE_SCREENSHOT, | |
560 #if defined(OS_CHROMEOS) | |
561 BRIGHTNESS_DOWN, | |
562 BRIGHTNESS_UP, | |
563 KEYBOARD_BRIGHTNESS_DOWN, | |
564 KEYBOARD_BRIGHTNESS_UP, | |
565 LOCK_SCREEN, | |
566 POWER_PRESSED, | |
567 POWER_RELEASED, | |
568 SUSPEND, | |
569 VOLUME_DOWN, | |
570 VOLUME_MUTE, | |
571 VOLUME_UP, | |
572 #endif | |
573 }; | |
574 | |
575 const size_t kActionsAllowedInPinnedModeLength = | |
576 arraysize(kActionsAllowedInPinnedMode); | |
577 | |
556 } // namespace ash | 578 } // namespace ash |
OLD | NEW |