From 1d6f733611983c2bc7d166e6e19d1bbeab3b4483 Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Tue, 22 Dec 1998 06:37:46 +0000 Subject: [PATCH] defined the Raptor windowKind bit and moved nsRefData to nsMacMessageSink.h --- widget/src/mac/nsMacMessageSink.h | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/widget/src/mac/nsMacMessageSink.h b/widget/src/mac/nsMacMessageSink.h index 887cc594d8aa..1a3e250e091e 100644 --- a/widget/src/mac/nsMacMessageSink.h +++ b/widget/src/mac/nsMacMessageSink.h @@ -20,6 +20,34 @@ #define nsMacMessageSink_h__ #include "prtypes.h" +class nsMacWindow; + + +/*================================================ +¥¥¥IMPORTANT +Hacks to make Raptor coexist with other windows. +================================================*/ + +// This bit is set in the Raptor windows 'windowKind' +#define kRaptorWindowKindBit 0x4000 + + +// An nsRefData pointer is stored in the Raptor windows 'refCon' +class nsRefData +{ +protected: + nsMacWindow* mNSMacWindow; // The nsMacWindow, ie. the top level widget + long mUserData; // Embedding applications data, guaranteed not to be used by widget code + +public: + nsMacWindow* GetNSMacWindow() {return(mNSMacWindow);} + long GetUserData() {return(mUserData);} + + void SetNSMacWindow(nsMacWindow* aNSMacWindow) {mNSMacWindow = aNSMacWindow;} + void SetUserData(long aUserData) {mUserData = aUserData;} +}; + + /*================================================ ¥¥¥IMPORTANT @@ -42,6 +70,5 @@ public: }; - #endif // nsMacMessageSink_h__