michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * michael@0: * This Original Code has been modified by IBM Corporation. michael@0: * Modifications made by IBM described herein are michael@0: * Copyright (c) International Business Machines michael@0: * Corporation, 2000 michael@0: * michael@0: * Modifications to Mozilla code or documentation michael@0: * identified per MPL Section 3.3 michael@0: * michael@0: * Date Modified by Description of modification michael@0: * 03/27/2000 IBM Corp. Added PR_CALLBACK for Optlink michael@0: * use in OS2 michael@0: */ michael@0: michael@0: #include "nsIDOMScriptObjectFactory.h" michael@0: #include "nsIObserver.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsDOMScriptObjectFactory MOZ_FINAL : public nsIDOMScriptObjectFactory, michael@0: public nsIObserver michael@0: { michael@0: public: michael@0: nsDOMScriptObjectFactory(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: // nsIObserver michael@0: NS_DECL_NSIOBSERVER michael@0: michael@0: // nsIDOMScriptObjectFactory michael@0: NS_IMETHOD_(nsISupports *) GetClassInfoInstance(nsDOMClassInfoID aID) MOZ_OVERRIDE; michael@0: NS_IMETHOD_(nsISupports *) GetExternalClassInfoInstance(const nsAString& aName) MOZ_OVERRIDE; michael@0: michael@0: NS_IMETHOD RegisterDOMClassInfo(const char *aName, michael@0: nsDOMClassInfoExternalConstructorFnc aConstructorFptr, michael@0: const nsIID *aProtoChainInterface, michael@0: const nsIID **aInterfaces, michael@0: uint32_t aScriptableFlags, michael@0: bool aHasClassInterface, michael@0: const nsCID *aConstructorCID) MOZ_OVERRIDE; michael@0: }; michael@0: