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

Unified Diff: chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h

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: Fix review issues. Created 4 years, 2 months 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/ui/cocoa/chrome_command_dispatcher_delegate.h
diff --git a/chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h b/chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h
index 17f0d8eccdaf97775e16282fd5f2baedb8c1dfb2..52793c25ed17a5eab2dc3054547dfdab0f438990 100644
--- a/chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h
+++ b/chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h
@@ -20,4 +20,18 @@
@end
+namespace command_dispatcher {
+
+// Type of functions listed in global_keyboard_shortcuts_mac.h.
+typedef int (*KeyToCommandMapper)(bool, bool, bool, bool, int, unichar);
+
+// If the event is for a Browser window, and the key combination has an
+// associated command, execute the command.
+bool HandleExtraKeyboardShortcut(
+ NSEvent* event,
+ NSWindow* window,
+ KeyToCommandMapper command_for_keyboard_shortcut);
+
+} // namespace command_dispatcher
+
#endif // CHROME_BROWSER_UI_COCOA_CHROME_COMMAND_DISPATCHER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698