Check in the one file to make all the timer magic work (d'oh!). r=leaf

This commit is contained in:
sfraser%netscape.com 2000-05-17 19:47:18 +00:00
Родитель 76a6d4348a
Коммит 52898499a5
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -60,11 +60,13 @@
#include "nsIComponentManager.h"
#include "nsSound.h"
#include "nsTimerMac.h"
// NOTE the following does not match MAC_STATIC actually used below in this file!
#define MACSTATIC
static NS_DEFINE_CID(kCWindow, NS_WINDOW_CID);
static NS_DEFINE_IID(kCTimer, NS_TIMER_CID);
static NS_DEFINE_CID(kCPopUp, NS_POPUP_CID);
static NS_DEFINE_CID(kCChild, NS_CHILD_CID);
static NS_DEFINE_CID(kCButton, NS_BUTTON_CID);
@ -165,7 +167,11 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
}
nsISupports *inst = nsnull;
if (mClassID.Equals(kCWindow)) {
if (mClassID.Equals(kCTimer)) {
inst = (nsISupports*)new nsTimerImpl();
}
else if (mClassID.Equals(kCWindow)) {
inst = (nsISupports*)(nsBaseWidget*)new nsMacWindow();
}
else if (mClassID.Equals(kCPopUp)) {