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 f639ea9a292461869a63fe6745acb91c725802e1..ab87ef96005830a604c0f32138f8e008ee8b7c75 100644 |
--- a/chrome/browser/global_keyboard_shortcuts_mac.h |
+++ b/chrome/browser/global_keyboard_shortcuts_mac.h |
@@ -62,6 +62,9 @@ int CommandForBrowserKeyboardShortcut( |
bool command_key, bool shift_key, bool cntrl_key, bool opt_key, |
int vkey_code, unichar key_char); |
+// Returns the Chrome command associated with |event|, or -1 if not found. |
+int CommandForKeyEvent(NSEvent* event); |
+ |
// Returns a keyboard event character for the given |event|. In most cases |
// this returns the first character of [NSEvent charactersIgnoringModifiers], |
// but when [NSEvent character] has different printable ascii character |