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..a43b979d4e5eda25c0f984f9026d694564f2d4fd 100644 |
--- a/ui/views/cocoa/native_widget_mac_nswindow.h |
+++ b/ui/views/cocoa/native_widget_mac_nswindow.h |
@@ -13,11 +13,17 @@ |
// The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that |
// can only be accomplished by overriding methods. |
VIEWS_EXPORT |
-@interface NativeWidgetMacNSWindow : NSWindow<CommandDispatchingWindow> |
+@interface NativeWidgetMacNSWindow |
+ : NSWindow<CommandDispatchingWindow, NSUserInterfaceValidations> |
tapted
2015/09/03 04:15:38
same here - NSUserInterfaceValidations is redundan
jackhou1
2015/09/03 06:15:39
Done.
|
// Set a CommandDispatcherDelegate, i.e. to implement key event handling. |
- (void)setCommandDispatcherDelegate:(id<CommandDispatcherDelegate>)delegate; |
+// Set a UserInterfaceItemCommandHandler to validate UI items and execute |
+// commands. |
+- (void)setUserInterfaceItemCommandHandler: |
+ (id<UserInterfaceItemCommandHandler>)commandHandler; |
+ |
@end |
#endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ |