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

Unified Diff: ui/views/cocoa/native_widget_mac_nswindow.h

Issue 1250403002: [Mac] Move UI item validation to UserInterfaceItemCommandHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commandexecute
Patch Set: Address comments. 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: ui/views/cocoa/native_widget_mac_nswindow.h
diff --git a/ui/views/cocoa/native_widget_mac_nswindow.h b/ui/views/cocoa/native_widget_mac_nswindow.h
index adc6b04169316175b57640eb7847bff2a8268081..affebfb96c0bfa38cde099c3a215c844dabe6e49 100644
--- a/ui/views/cocoa/native_widget_mac_nswindow.h
+++ b/ui/views/cocoa/native_widget_mac_nswindow.h
@@ -15,8 +15,10 @@
VIEWS_EXPORT
@interface NativeWidgetMacNSWindow : NSWindow<CommandDispatchingWindow>
-// Set a CommandDispatcherDelegate, i.e. to implement key event handling.
-- (void)setCommandDispatcherDelegate:(id<CommandDispatcherDelegate>)delegate;
+// Set a CommandDispatcherDelegate, i.e. to implement key event handling. Also
+// used to validate UI items and execute commands.
+- (void)setCommandDispatcherDelegate:
+ (id<CommandDispatcherDelegate, UserInterfaceItemCommandHandler>)delegate;
@end

Powered by Google App Engine
This is Rietveld 408576698