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

Side by Side Diff: chrome/browser/ui/cocoa/chrome_event_processing_window.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_
6 #define CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ 6 #define CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
11 #import "ui/base/cocoa/command_dispatcher.h" 11 #import "ui/base/cocoa/command_dispatcher.h"
12 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" 12 #import "ui/base/cocoa/underlay_opengl_hosting_window.h"
13 13
14 @class ChromeCommandDispatcherDelegate; 14 @class ChromeCommandDispatcherDelegate;
15 15
16 // Override NSWindow to access unhandled keyboard events (for command 16 // Override NSWindow to access unhandled keyboard events (for command
17 // processing); subclassing NSWindow is the only method to do 17 // processing); subclassing NSWindow is the only method to do
18 // this. 18 // this.
19 @interface ChromeEventProcessingWindow 19 @interface ChromeEventProcessingWindow
20 : UnderlayOpenGLHostingWindow<CommandDispatchingWindow> 20 : UnderlayOpenGLHostingWindow<CommandDispatchingWindow,
21 NSUserInterfaceValidations>
tapted 2015/09/03 04:15:38 NSWindow already conforms to NSUserInterfaceValida
jackhou1 2015/09/03 06:15:39 Done.
21 22
22 // Checks if |event| is a window, delayed window, or browser keyboard shortcut. 23 // Checks if |event| is a window, delayed window, or browser keyboard shortcut.
23 // (See global_keyboard_shortcuts_mac.h for details). If so, execute the 24 // (See global_keyboard_shortcuts_mac.h for details). If so, execute the
24 // associated command. Returns YES if the event was handled. 25 // associated command. Returns YES if the event was handled.
25 - (BOOL)handleExtraKeyboardShortcut:(NSEvent*)event; 26 - (BOOL)handleExtraKeyboardShortcut:(NSEvent*)event;
26 27
27 @end 28 @end
28 29
29 #endif // CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_ 30 #endif // CHROME_BROWSER_UI_COCOA_CHROME_EVENT_PROCESSING_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698