Index: base/message_pump_mac.h |
diff --git a/base/message_pump_mac.h b/base/message_pump_mac.h |
index e016d541fe1059026e24653377454af190f1eedd..462544424f76a5d2398b7ca4dff13befa5bdf2b6 100644 |
--- a/base/message_pump_mac.h |
+++ b/base/message_pump_mac.h |
@@ -36,11 +36,21 @@ |
#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> |
+ |
+class NSAutoreleasePool; |
Mark Mentovai
2010/12/17 17:31:38
Since you just #imported AppKit.h, this is unneces
Nico
2010/12/18 01:14:28
Removed.
|
+// 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 { |