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

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

Issue 1250403002: [Mac] Move UI item validation to UserInterfaceItemCommandHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commandexecute
Patch Set: Sync Created 5 years, 3 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..f4347e2b1f17704a89498e5b879f85742734b312 100644
--- a/chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h
+++ b/chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h
@@ -10,8 +10,11 @@
#import "ui/base/cocoa/command_dispatcher.h"
// Implement CommandDispatcherDelegate by intercepting browser window keyboard
-// shortcuts and executing them with chrome::ExecuteCommand.
-@interface ChromeCommandDispatcherDelegate : NSObject<CommandDispatcherDelegate>
+// shortcuts and executing them with chrome::ExecuteCommand. Implement
+// UserInterfaceItemCommandHandler by validating items using global chrome::
+// functions and executing commands with chrome::ExecuteCommand().
+@interface ChromeCommandDispatcherDelegate
+ : NSObject<CommandDispatcherDelegate, UserInterfaceItemCommandHandler>
// Checks if |event| is a keyboard shortcut listed in
// global_keyboard_shortcuts_mac.h. If so, execute the associated command.

Powered by Google App Engine
This is Rietveld 408576698