OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/global_keyboard_shortcuts_mac.h" |
| 6 |
| 7 #include "base/macros.h" |
| 8 #include "chrome/app/chrome_command_ids.h" |
| 9 |
| 10 // Lists shortcuts that are impossible to migrate to accelerator_table.cc |
| 11 // (crbug.com/25946). |
| 12 |
| 13 const std::vector<KeyboardShortcutData>& GetWindowKeyboardShortcutTable() { |
| 14 CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({ |
| 15 // cmd shift cntrl option |
| 16 // --- ----- ----- ------ |
| 17 // '{' / '}' characters should be matched earlier than virtual key code |
| 18 // (therefore we can match alt-8 as '{' on german keyboards). |
| 19 {true, false, false, false, 0, '}', IDC_SELECT_NEXT_TAB}, |
| 20 {true, false, false, false, 0, '{', IDC_SELECT_PREVIOUS_TAB}, |
| 21 })); |
| 22 return result; |
| 23 } |
| 24 |
| 25 const std::vector<KeyboardShortcutData>& |
| 26 GetDelayedWindowKeyboardShortcutTable() { |
| 27 CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({})); |
| 28 return result; |
| 29 } |
| 30 |
| 31 const std::vector<KeyboardShortcutData>& GetBrowserKeyboardShortcutTable() { |
| 32 CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({})); |
| 33 return result; |
| 34 } |
OLD | NEW |