Chromium Code Reviews| Index: chrome/browser/global_keyboard_shortcuts_views_mac.mm |
| diff --git a/chrome/browser/global_keyboard_shortcuts_views_mac.mm b/chrome/browser/global_keyboard_shortcuts_views_mac.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..663b02f98b65649e3957b155805095b349002158 |
| --- /dev/null |
| +++ b/chrome/browser/global_keyboard_shortcuts_views_mac.mm |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "base/macros.h" |
| +#include "chrome/app/chrome_command_ids.h" |
| +#include "chrome/browser/global_keyboard_shortcuts_mac.h" |
|
sky
2016/11/08 18:34:09
this should be the first include.
themblsha
2016/11/09 14:54:02
This results in a warning, because the include fil
Peter Kasting
2016/11/09 18:39:12
In this case, I think your previous ordering was r
themblsha
2016/11/10 14:18:05
Ok, restored the includes :-)
|
| + |
| +// Lists shortcuts that are impossible to migrate to accelerator_table.cc |
| +// (crbug.com/25946). |
| + |
| +const std::vector<KeyboardShortcutData>& GetWindowKeyboardShortcutTable() { |
| + CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({ |
| + // cmd shift cntrl option |
| + // --- ----- ----- ------ |
| + // '{' / '}' characters should be matched earlier than virtual key code |
| + // (therefore we can match alt-8 as '{' on german keyboards). |
| + {true, false, false, false, 0, '}', IDC_SELECT_NEXT_TAB}, |
| + {true, false, false, false, 0, '{', IDC_SELECT_PREVIOUS_TAB}, |
| + })); |
| + return result; |
| +} |
| + |
| +const std::vector<KeyboardShortcutData>& |
| +GetDelayedWindowKeyboardShortcutTable() { |
| + CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({})); |
| + return result; |
| +} |
| + |
| +const std::vector<KeyboardShortcutData>& GetBrowserKeyboardShortcutTable() { |
| + CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({})); |
| + return result; |
| +} |