Chromium Code Reviews| 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 { |
|
Scott Hess - ex-Googler
2011/11/09 01:05:14
This is duplicated WRT the subclass in chrome/. B
|
| 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 { |