michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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: #ifndef nsIScriptExternalNameSet_h__ michael@0: #define nsIScriptExternalNameSet_h__ michael@0: michael@0: #include "nsISupports.h" michael@0: michael@0: #define NS_ISCRIPTEXTERNALNAMESET_IID \ michael@0: {0xa6cf90da, 0x15b3, 0x11d2, \ michael@0: {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}} michael@0: michael@0: class nsIScriptContext; michael@0: michael@0: /** michael@0: * This interface represents a set of names or symbols that should be michael@0: * added to the "global" namespace of a script context. A name set is michael@0: * registered with the name set registry (see michael@0: * nsIScriptNameSetRegistry) at component registration michael@0: * time using the category manager. michael@0: */ michael@0: michael@0: class nsIScriptExternalNameSet : public nsISupports michael@0: { michael@0: public: michael@0: NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTEXTERNALNAMESET_IID) michael@0: michael@0: /** michael@0: * Called to tell the name set to do any initialization it needs to michael@0: */ michael@0: NS_IMETHOD InitializeNameSet(nsIScriptContext* aScriptContext) = 0; michael@0: }; michael@0: michael@0: NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptExternalNameSet, michael@0: NS_ISCRIPTEXTERNALNAMESET_IID) michael@0: michael@0: #endif /* nsIScriptExternalNameSet_h__ */