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

Unified Diff: chrome/browser/ui/cocoa/chrome_event_processing_window.mm

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_event_processing_window.mm
diff --git a/chrome/browser/ui/cocoa/chrome_event_processing_window.mm b/chrome/browser/ui/cocoa/chrome_event_processing_window.mm
index b7b437d923f67200e1a961bb126a05312fb709a3..0b94a91d25a4c20c5f6080aa3ba9877ce3c014cd 100644
--- a/chrome/browser/ui/cocoa/chrome_event_processing_window.mm
+++ b/chrome/browser/ui/cocoa/chrome_event_processing_window.mm
@@ -45,6 +45,20 @@
return [super performKeyEquivalent:event];
}
+- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
tapted 2015/09/03 04:15:38 move down below NSWindow overrides. Maybe // NSWi
jackhou1 2015/09/03 06:15:39 Done.
+ return
+ [commandDispatcherDelegate_ validateUserInterfaceItem:item window:self];
+}
+
+- (void)commandDispatch:(id)sender {
+ [commandDispatcherDelegate_ commandDispatch:sender window:self];
+}
+
+- (void)commandDispatchUsingKeyModifiers:(id)sender {
+ [commandDispatcherDelegate_ commandDispatchUsingKeyModifiers:sender
+ window:self];
+}
+
// NSWindow overrides.
- (BOOL)performKeyEquivalent:(NSEvent*)event {

Powered by Google App Engine
This is Rietveld 408576698