1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/nsIScriptExternalNameSet.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsIScriptExternalNameSet_h__ 1.10 +#define nsIScriptExternalNameSet_h__ 1.11 + 1.12 +#include "nsISupports.h" 1.13 + 1.14 +#define NS_ISCRIPTEXTERNALNAMESET_IID \ 1.15 + {0xa6cf90da, 0x15b3, 0x11d2, \ 1.16 + {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}} 1.17 + 1.18 +class nsIScriptContext; 1.19 + 1.20 +/** 1.21 + * This interface represents a set of names or symbols that should be 1.22 + * added to the "global" namespace of a script context. A name set is 1.23 + * registered with the name set registry (see 1.24 + * <code>nsIScriptNameSetRegistry</code>) at component registration 1.25 + * time using the category manager. 1.26 + */ 1.27 + 1.28 +class nsIScriptExternalNameSet : public nsISupports 1.29 +{ 1.30 +public: 1.31 + NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTEXTERNALNAMESET_IID) 1.32 + 1.33 + /** 1.34 + * Called to tell the name set to do any initialization it needs to 1.35 + */ 1.36 + NS_IMETHOD InitializeNameSet(nsIScriptContext* aScriptContext) = 0; 1.37 +}; 1.38 + 1.39 +NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptExternalNameSet, 1.40 + NS_ISCRIPTEXTERNALNAMESET_IID) 1.41 + 1.42 +#endif /* nsIScriptExternalNameSet_h__ */