From 1b9944082f216c9a751eab73546a2f94a292b87f Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 7 May 1999 19:52:44 +0000 Subject: [PATCH] create a drag service. --- widget/src/mac/nsWidgetFactory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/widget/src/mac/nsWidgetFactory.cpp b/widget/src/mac/nsWidgetFactory.cpp index ba590861feb..b6208b13eeb 100644 --- a/widget/src/mac/nsWidgetFactory.cpp +++ b/widget/src/mac/nsWidgetFactory.cpp @@ -44,6 +44,7 @@ #include "nsTransferable.h" #include "nsXIFFormatConverter.h" #include "nsDataFlavor.h" +#include "nsDragService.h" #include "nsTextAreaWidget.h" #include "nsListBox.h" @@ -81,10 +82,12 @@ static NS_DEFINE_IID(kCMenuButton, NS_MENUBUTTON_CID); static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID); +// Drag and Drop/Clipboard static NS_DEFINE_IID(kCDataFlavor, NS_DATAFLAVOR_CID); static NS_DEFINE_IID(kCClipboard, NS_CLIPBOARD_CID); static NS_DEFINE_IID(kCGenericTransferable, NS_GENERICTRANSFERABLE_CID); static NS_DEFINE_IID(kCXIFFormatConverter, NS_XIFFORMATCONVERTER_CID); +static NS_DEFINE_IID(kCDragService, NS_DRAGSERVICE_CID); //------------------------------------------------------------------------- @@ -266,6 +269,9 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter, else if (mClassID.Equals(kCClipboard)) { inst = (nsISupports*)new nsClipboard(); } + else if (mClassID.Equals(kCDragService)) { + inst = (nsISupports*)NS_STATIC_CAST(nsIDragService*, new nsDragService()); + } if (inst == NULL) { return NS_ERROR_OUT_OF_MEMORY;