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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ 5 #ifndef UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_
6 #define UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ 6 #define UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "ui/base/cocoa/command_dispatcher.h" 10 #import "ui/base/cocoa/command_dispatcher.h"
11 #include "ui/views/views_export.h" 11 #include "ui/views/views_export.h"
12 12
13 // The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that 13 // The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
14 // can only be accomplished by overriding methods. 14 // can only be accomplished by overriding methods.
15 VIEWS_EXPORT 15 VIEWS_EXPORT
16 @interface NativeWidgetMacNSWindow : NSWindow<CommandDispatchingWindow> 16 @interface NativeWidgetMacNSWindow
17 : NSWindow<CommandDispatchingWindow, NSUserInterfaceValidations>
tapted 2015/09/03 04:15:38 same here - NSUserInterfaceValidations is redundan
jackhou1 2015/09/03 06:15:39 Done.
17 18
18 // Set a CommandDispatcherDelegate, i.e. to implement key event handling. 19 // Set a CommandDispatcherDelegate, i.e. to implement key event handling.
19 - (void)setCommandDispatcherDelegate:(id<CommandDispatcherDelegate>)delegate; 20 - (void)setCommandDispatcherDelegate:(id<CommandDispatcherDelegate>)delegate;
20 21
22 // Set a UserInterfaceItemCommandHandler to validate UI items and execute
23 // commands.
24 - (void)setUserInterfaceItemCommandHandler:
25 (id<UserInterfaceItemCommandHandler>)commandHandler;
26
21 @end 27 @end
22 28
23 #endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ 29 #endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698