зеркало из https://github.com/mozilla/pjs.git
Exposed EventListenerManager.
This commit is contained in:
Родитель
13d13b5559
Коммит
08e44a454d
|
@ -87,4 +87,9 @@
|
|||
{/* {56AD2981-8A87-11d2-918C-0080C8E44DB5}*/ \
|
||||
0x56ad2981, 0x8a87, 0x11d2, { 0x91, 0x8c, 0x0, 0x80, 0xc8, 0xe4, 0x4d, 0xb5 } }
|
||||
|
||||
// {09F689E0-B4DA-11d2-A68B-00104BDE6048}
|
||||
#define NS_EVENTLISTENERMANAGER_CID \
|
||||
{ 0x9f689e0, 0xb4da, 0x11d2, { 0xa6, 0x8b, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
|
||||
|
||||
|
||||
#endif // nsLayoutCID_h__
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#include "nsIScriptNameSetRegistry.h"
|
||||
#include "nsIScriptNameSpaceManager.h"
|
||||
#include "nsIScriptExternalNameSet.h"
|
||||
#include "nsIEventListenerManager.h"
|
||||
|
||||
static NS_DEFINE_IID(kCHTMLDocumentCID, NS_HTMLDOCUMENT_CID);
|
||||
static NS_DEFINE_IID(kCXMLDocumentCID, NS_XMLDOCUMENT_CID);
|
||||
|
@ -55,6 +56,7 @@ static NS_DEFINE_CID(kSelectionCID, NS_SELECTION_CID);
|
|||
static NS_DEFINE_CID(kNameSpaceManagerCID, NS_NAMESPACEMANAGER_CID);
|
||||
static NS_DEFINE_CID(kFrameUtilCID, NS_FRAME_UTIL_CID);
|
||||
static NS_DEFINE_CID(kRangeCID, NS_RANGE_CID);
|
||||
static NS_DEFINE_CID(kEventListenerManagerCID, NS_EVENTLISTENERMANAGER_CID);
|
||||
|
||||
|
||||
nsresult NS_NewRangeList(nsICollection **);
|
||||
|
@ -251,6 +253,11 @@ nsresult nsLayoutFactory::CreateInstance(nsISupports *aOuter,
|
|||
return res;
|
||||
refCounted = PR_TRUE;
|
||||
}
|
||||
else if (mClassID.Equals(kEventListenerManagerCID)) {
|
||||
if (NS_FAILED(res = NS_NewEventListenerManager((nsIEventListenerManager**) &inst)))
|
||||
return res;
|
||||
refCounted = PR_TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return NS_NOINTERFACE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче