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 "base/macros.h" | |
6 #include "chrome/app/chrome_command_ids.h" | |
7 #include "chrome/browser/global_keyboard_shortcuts_mac.h" | |
8 | |
9 // Lists shortcuts that are impossible to migrate to accelerator_table.cc | |
10 // (crbug.com/25946). | |
11 | |
12 const KeyboardShortcutData* GetWindowKeyboardShortcutTable( | |
Peter Kasting
2016/10/31 18:07:32
Nit: Out of scope for this CL, but consider modify
themblsha
2016/11/01 14:36:24
Not sure what you mean by C++11: move semantics? B
Peter Kasting
2016/11/01 18:20:58
I simply mean that the combination of things like
themblsha
2016/11/02 17:31:37
Will the std::vector just wrap the initializer lis
Peter Kasting
2016/11/02 17:51:28
I see. In that case you might indeed want to avoi
| |
13 size_t* num_entries) { | |
14 static const KeyboardShortcutData keyboard_shortcuts[] = { | |
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 | |
23 *num_entries = arraysize(keyboard_shortcuts); | |
24 | |
25 return keyboard_shortcuts; | |
26 } | |
27 | |
28 const KeyboardShortcutData* GetDelayedWindowKeyboardShortcutTable( | |
29 size_t* num_entries) { | |
30 static const KeyboardShortcutData keyboard_shortcuts[] = {}; | |
31 *num_entries = 0; | |
32 return keyboard_shortcuts; | |
33 } | |
34 | |
35 const KeyboardShortcutData* GetBrowserKeyboardShortcutTable( | |
36 size_t* num_entries) { | |
37 static const KeyboardShortcutData keyboard_shortcuts[] = {}; | |
38 *num_entries = 0; | |
39 return keyboard_shortcuts; | |
40 } | |
OLD | NEW |