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

Unified Diff: chrome/browser/global_keyboard_shortcuts_mac.h

Issue 2535553002: MacViews: Fix GlobalKeyboardShortcuts.ShortcutsToWindowCommand. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/global_keyboard_shortcuts_mac.h
diff --git a/chrome/browser/global_keyboard_shortcuts_mac.h b/chrome/browser/global_keyboard_shortcuts_mac.h
index 6e8e35f9fe0d7989bb0f6962890e103bc8ea51de..2ec26ba79e43108032b1f36e3ef2e0f51649bd40 100644
--- a/chrome/browser/global_keyboard_shortcuts_mac.h
+++ b/chrome/browser/global_keyboard_shortcuts_mac.h
@@ -45,6 +45,17 @@ struct KeyboardShortcutData {
// consistent with safari and camino, and I think it's the best we can do
// without rewriting event dispatching ( http://crbug.com/251069 ).
+// Generic function used by CommandForWindowKeyboardShortcut,
+// CommandForDelayedWindowKeyboardShortcut and
+// CommandForBrowserKeyboardShortcut.
+int CommandForKeyboardShortcut(const std::vector<KeyboardShortcutData>& table,
+ bool command_key,
+ bool shift_key,
+ bool cntrl_key,
+ bool opt_key,
+ int vkey_code,
+ unichar key_char);
+
// This returns shortcuts that should work no matter what component of the
// browser is focused. They are executed by the window, before any view has the
// opportunity to override the shortcut (with the exception of the tab contents,

Powered by Google App Engine
This is Rietveld 408576698