| 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..9778023dbded49d28ec3b842dd091cb78539a5c8 100644
|
| --- a/content/common/chrome_application_mac.h
|
| +++ b/content/common/chrome_application_mac.h
|
| @@ -11,19 +11,11 @@
|
| #import <AppKit/AppKit.h>
|
|
|
| #include "base/basictypes.h"
|
| -#include "base/memory/scoped_nsobject.h"
|
| #import "content/common/mac/scoped_sending_event.h"
|
|
|
| -// 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 +23,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
|
|
|
|
|