Index: content/common/chrome_application_mac.h |
diff --git a/content/common/chrome_application_mac.h b/content/common/chrome_application_mac.h |
index 7a33168c26f8afd507ae6849095faa0d7dd8ae19..0d6ab35e7ba949cc3ebdbbf93f3bf8448e816f39 100644 |
--- a/content/common/chrome_application_mac.h |
+++ b/content/common/chrome_application_mac.h |
@@ -14,16 +14,9 @@ |
#include "base/memory/scoped_nsobject.h" |
Robert Sesek
2011/11/09 18:16:25
nit: remove
Scott Hess - ex-Googler
2011/11/09 18:36:53
Done.
|
#import "content/common/mac/scoped_sending_event.h" |
Robert Sesek
2011/11/09 18:16:25
can move into .mm
Scott Hess - ex-Googler
2011/11/09 18:36:53
Defines the necessary protocol.
Robert Sesek
2011/11/09 18:38:59
Oops, you're right.
|
-// Event hooks must implement this protocol. |
-@protocol CrApplicationEventHookProtocol |
-- (void)hookForEvent:(NSEvent*)theEvent; |
-@end |
- |
@interface CrApplication : NSApplication<CrAppControlProtocol> { |
@private |
BOOL handlingSendEvent_; |
- // Array of objects implementing the CrApplicationEventHookProtocol |
- scoped_nsobject<NSMutableArray> eventHooks_; |
} |
- (BOOL)isHandlingSendEvent; |
@@ -31,17 +24,6 @@ |
// used except in recovering from some sort of exceptional condition. |
- (void)clearIsHandlingSendEvent; |
-// Add or remove an event hook to be called for every sendEvent: |
-// that the application receives. These handlers are called before |
-// the normal [NSApplication sendEvent:] call is made. |
- |
-// This is not a good alternative to a nested event loop. It should |
-// be used only when normal event logic and notification breaks down |
-// (e.g. when clicking outside a canBecomeKey:NO window to "switch |
-// context" out of it). |
-- (void)addEventHook:(id<CrApplicationEventHookProtocol>)hook; |
-- (void)removeEventHook:(id<CrApplicationEventHookProtocol>)hook; |
- |
+ (NSApplication*)sharedApplication; |
@end |