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 KeyboardShortcutData* GetWindowKeyboardShortcutTable( |
| 14 size_t* num_entries) { |
| 15 static const KeyboardShortcutData keyboard_shortcuts[] = { |
| 16 // cmd shift cntrl option |
| 17 // --- ----- ----- ------ |
| 18 // '{' / '}' characters should be matched earlier than virtual key code |
| 19 // (therefore we can match alt-8 as '{' on german keyboards). |
| 20 {true, false, false, false, 0, '}', IDC_SELECT_NEXT_TAB}, |
| 21 {true, false, false, false, 0, '{', IDC_SELECT_PREVIOUS_TAB}, |
| 22 }; |
| 23 |
| 24 *num_entries = arraysize(keyboard_shortcuts); |
| 25 |
| 26 return keyboard_shortcuts; |
| 27 } |
| 28 |
| 29 const KeyboardShortcutData* GetDelayedWindowKeyboardShortcutTable( |
| 30 size_t* num_entries) { |
| 31 static const KeyboardShortcutData keyboard_shortcuts[] = {}; |
| 32 *num_entries = 0; |
| 33 return keyboard_shortcuts; |
| 34 } |
| 35 |
| 36 const KeyboardShortcutData* GetBrowserKeyboardShortcutTable( |
| 37 size_t* num_entries) { |
| 38 static const KeyboardShortcutData keyboard_shortcuts[] = {}; |
| 39 *num_entries = 0; |
| 40 return keyboard_shortcuts; |
| 41 } |
OLD | NEW |