Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/global_keyboard_shortcuts_views_mac.mm

Issue 2074643003: MacViews: Views accelerators table should match the Cocoa one. (Closed) Base URL: ssh://bitbucket.browser.yandex-team.ru/chromium/src.git@master
Patch Set: Make (Pre)HandleKeyboardEvent pure virtual. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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"
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 :-)
8
9 // Lists shortcuts that are impossible to migrate to accelerator_table.cc
10 // (crbug.com/25946).
11
12 const std::vector<KeyboardShortcutData>& GetWindowKeyboardShortcutTable() {
13 CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({
14 // cmd shift cntrl option
15 // --- ----- ----- ------
16 // '{' / '}' characters should be matched earlier than virtual key code
17 // (therefore we can match alt-8 as '{' on german keyboards).
18 {true, false, false, false, 0, '}', IDC_SELECT_NEXT_TAB},
19 {true, false, false, false, 0, '{', IDC_SELECT_PREVIOUS_TAB},
20 }));
21 return result;
22 }
23
24 const std::vector<KeyboardShortcutData>&
25 GetDelayedWindowKeyboardShortcutTable() {
26 CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({}));
27 return result;
28 }
29
30 const std::vector<KeyboardShortcutData>& GetBrowserKeyboardShortcutTable() {
31 CR_DEFINE_STATIC_LOCAL(std::vector<KeyboardShortcutData>, result, ({}));
32 return result;
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698