Index: base/message_pump_mac.h |
diff --git a/base/message_pump_mac.h b/base/message_pump_mac.h |
index e016d541fe1059026e24653377454af190f1eedd..c30a8eae3ffe2819f4ccdbe7645e208f4202ac5d 100644 |
--- a/base/message_pump_mac.h |
+++ b/base/message_pump_mac.h |
@@ -36,11 +36,20 @@ |
#include <CoreFoundation/CoreFoundation.h> |
#include <IOKit/IOKitLib.h> |
-#if defined(__OBJC__) |
-@class NSAutoreleasePool; |
-#else // defined(__OBJC__) |
+#if !defined(__OBJC__) |
class NSAutoreleasePool; |
-#endif // defined(__OBJC__) |
+#else // !defined(__OBJC__) |
+#import <AppKit/AppKit.h> |
+ |
+// Clients must subclass NSApplication and implement this protocol if they use |
+// MessagePumpMac. |
+@protocol CrAppProtocol |
+// Must return true if -[NSApplication sendEvent:] is currently on the stack. |
+// See the comment for |CreateAutoreleasePool()| in the cc file for why this is |
+// necessary. |
+- (BOOL)isHandlingSendEvent; |
+@end |
+#endif // !defined(__OBJC__) |
namespace base { |