]> git.sesse.net Git - vlc/blob - mozilla/support/classinfo.h
Removes trailing spaces. Removes tabs.
[vlc] / mozilla / support / classinfo.h
1 #include "nsIClassInfo.h"
2
3 // helper class to implement all necessary nsIClassInfo method stubs
4 // and to set flags used by the security system
5 class  ClassInfo : public nsIClassInfo
6 {
7   // These flags are used by the DOM and security systems to signal that
8   // JavaScript callers are allowed to call this object's scritable methods.
9   NS_IMETHOD GetFlags(PRUint32 *aFlags)
10     {*aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;
11      return NS_OK;}
12   NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)
13     {*aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;
14      return NS_OK;}
15
16   // The rest of the methods can safely return error codes...
17   NS_IMETHOD GetInterfaces(PRUint32 *count, nsIID * **array)
18     {return NS_ERROR_NOT_IMPLEMENTED;}
19   NS_IMETHOD GetHelperForLanguage(PRUint32 language, nsISupports **_retval)
20     {return NS_ERROR_NOT_IMPLEMENTED;}
21   NS_IMETHOD GetContractID(char * *aContractID)
22     {return NS_ERROR_NOT_IMPLEMENTED;}
23   NS_IMETHOD GetClassDescription(char * *aClassDescription)
24     {return NS_ERROR_NOT_IMPLEMENTED;}
25   NS_IMETHOD GetClassID(nsCID * *aClassID)
26     {return NS_ERROR_NOT_IMPLEMENTED;}
27   NS_IMETHOD GetClassIDNoAlloc(nsCID *aClassIDNoAlloc)
28     {return NS_ERROR_NOT_IMPLEMENTED;}
29 };
30