From 52898499a5546fd68aa3e501072dec7f3f105c7a Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Wed, 17 May 2000 19:47:18 +0000 Subject: [PATCH] Check in the one file to make all the timer magic work (d'oh!). r=leaf --- widget/src/mac/nsWidgetFactory.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/widget/src/mac/nsWidgetFactory.cpp b/widget/src/mac/nsWidgetFactory.cpp index f123e43464a2..24cdb6d8ae75 100644 --- a/widget/src/mac/nsWidgetFactory.cpp +++ b/widget/src/mac/nsWidgetFactory.cpp @@ -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)) {