defined the Raptor windowKind bit and moved nsRefData to nsMacMessageSink.h
This commit is contained in:
Родитель
aeff8eaaf0
Коммит
b6d3d328bb
|
@ -20,6 +20,34 @@
|
||||||
#define nsMacMessageSink_h__
|
#define nsMacMessageSink_h__
|
||||||
|
|
||||||
#include "prtypes.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
|
¥¥¥IMPORTANT
|
||||||
|
@ -42,6 +70,5 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // nsMacMessageSink_h__
|
#endif // nsMacMessageSink_h__
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче