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

Unified Diff: chrome/browser/chrome_browser_application_mac.mm

Issue 11667005: Drop event hooking in CrApplication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/chrome_browser_application_mac.mm
diff --git a/chrome/browser/chrome_browser_application_mac.mm b/chrome/browser/chrome_browser_application_mac.mm
index c250e350520e35f8948e9e2c043d1a34e8f76b3e..b3f3533b8a70f374688bf2b52022f07f61125726 100644
--- a/chrome/browser/chrome_browser_application_mac.mm
+++ b/chrome/browser/chrome_browser_application_mac.mm
@@ -230,9 +230,7 @@ void SwizzleInit() {
- (id)init {
SwizzleInit();
- if ((self = [super init])) {
- eventHooks_.reset([[NSMutableArray alloc] init]);
- }
+ self = [super init];
// Sanity check to alert if overridden methods are not supported.
DCHECK([NSApplication
@@ -412,14 +410,6 @@ void SwizzleInit() {
return [super sendAction:anAction to:aTarget from:sender];
}
-- (void)addEventHook:(id<CrApplicationEventHookProtocol>)handler {
- [eventHooks_ addObject:handler];
-}
-
-- (void)removeEventHook:(id<CrApplicationEventHookProtocol>)handler {
- [eventHooks_ removeObject:handler];
-}
-
- (BOOL)isHandlingSendEvent {
return handlingSendEvent_;
}
@@ -430,9 +420,6 @@ void SwizzleInit() {
- (void)sendEvent:(NSEvent*)event {
base::mac::ScopedSendingEvent sendingEventScoper;
- for (id<CrApplicationEventHookProtocol> handler in eventHooks_.get()) {
- [handler hookForEvent:event];
- }
[super sendEvent:event];
}
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698