1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/nsDOMScriptObjectFactory.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + * 1.10 + * 1.11 + * This Original Code has been modified by IBM Corporation. 1.12 + * Modifications made by IBM described herein are 1.13 + * Copyright (c) International Business Machines 1.14 + * Corporation, 2000 1.15 + * 1.16 + * Modifications to Mozilla code or documentation 1.17 + * identified per MPL Section 3.3 1.18 + * 1.19 + * Date Modified by Description of modification 1.20 + * 03/27/2000 IBM Corp. Added PR_CALLBACK for Optlink 1.21 + * use in OS2 1.22 + */ 1.23 + 1.24 +#include "nsIDOMScriptObjectFactory.h" 1.25 +#include "nsIObserver.h" 1.26 +#include "mozilla/Attributes.h" 1.27 + 1.28 +class nsDOMScriptObjectFactory MOZ_FINAL : public nsIDOMScriptObjectFactory, 1.29 + public nsIObserver 1.30 +{ 1.31 +public: 1.32 + nsDOMScriptObjectFactory(); 1.33 + 1.34 + NS_DECL_ISUPPORTS 1.35 + 1.36 + // nsIObserver 1.37 + NS_DECL_NSIOBSERVER 1.38 + 1.39 + // nsIDOMScriptObjectFactory 1.40 + NS_IMETHOD_(nsISupports *) GetClassInfoInstance(nsDOMClassInfoID aID) MOZ_OVERRIDE; 1.41 + NS_IMETHOD_(nsISupports *) GetExternalClassInfoInstance(const nsAString& aName) MOZ_OVERRIDE; 1.42 + 1.43 + NS_IMETHOD RegisterDOMClassInfo(const char *aName, 1.44 + nsDOMClassInfoExternalConstructorFnc aConstructorFptr, 1.45 + const nsIID *aProtoChainInterface, 1.46 + const nsIID **aInterfaces, 1.47 + uint32_t aScriptableFlags, 1.48 + bool aHasClassInterface, 1.49 + const nsCID *aConstructorCID) MOZ_OVERRIDE; 1.50 +}; 1.51 +