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

Unified Diff: content/common/chrome_application_mac.mm

Issue 8498034: [Mac] Move event hooks from CrApplication to BrowserCrApplication. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: And copyright, sigh. Created 9 years, 1 month 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: content/common/chrome_application_mac.mm
diff --git a/content/common/chrome_application_mac.mm b/content/common/chrome_application_mac.mm
index a5277ff5cf85a99589578dd5fdcd20539dba3255..deec8b3c10c3ca2f1600ceea1d1412d597bd2f94 100644
--- a/content/common/chrome_application_mac.mm
+++ b/content/common/chrome_application_mac.mm
@@ -24,13 +24,6 @@
return app;
}
-- (id)init {
- if ((self = [super init])) {
- eventHooks_.reset([[NSMutableArray alloc] init]);
- }
- return self;
-}
-
- (BOOL)isHandlingSendEvent {
return handlingSendEvent_;
}
@@ -45,20 +38,9 @@
- (void)sendEvent:(NSEvent*)event {
content::mac::ScopedSendingEvent sendingEventScoper;
- for (id<CrApplicationEventHookProtocol> handler in eventHooks_.get()) {
- [handler hookForEvent:event];
- }
[super sendEvent:event];
}
-- (void)addEventHook:(id<CrApplicationEventHookProtocol>)handler {
- [eventHooks_ addObject:handler];
-}
-
-- (void)removeEventHook:(id<CrApplicationEventHookProtocol>)handler {
- [eventHooks_ removeObject:handler];
-}
-
@end
namespace chrome_application_mac {

Powered by Google App Engine
This is Rietveld 408576698