classinfo.h

来自「VLC Player Source Code」· C头文件 代码 · 共 31 行

H
31
字号
#include "nsIClassInfo.h"// helper class to implement all necessary nsIClassInfo method stubs// and to set flags used by the security systemclass  ClassInfo : public nsIClassInfo{  // These flags are used by the DOM and security systems to signal that  // JavaScript callers are allowed to call this object's scritable methods.  NS_IMETHOD GetFlags(PRUint32 *aFlags)    {*aFlags = nsIClassInfo::PLUGIN_OBJECT | nsIClassInfo::DOM_OBJECT;     return NS_OK;}  NS_IMETHOD GetImplementationLanguage(PRUint32 *aImplementationLanguage)    {*aImplementationLanguage = nsIProgrammingLanguage::CPLUSPLUS;     return NS_OK;}  // The rest of the methods can safely return error codes...  NS_IMETHOD GetInterfaces(PRUint32 *count, nsIID * **array)    {return NS_ERROR_NOT_IMPLEMENTED;}  NS_IMETHOD GetHelperForLanguage(PRUint32 language, nsISupports **_retval)    {return NS_ERROR_NOT_IMPLEMENTED;}  NS_IMETHOD GetContractID(char * *aContractID)    {return NS_ERROR_NOT_IMPLEMENTED;}  NS_IMETHOD GetClassDescription(char * *aClassDescription)    {return NS_ERROR_NOT_IMPLEMENTED;}  NS_IMETHOD GetClassID(nsCID * *aClassID)    {return NS_ERROR_NOT_IMPLEMENTED;}  NS_IMETHOD GetClassIDNoAlloc(nsCID *aClassIDNoAlloc)    {return NS_ERROR_NOT_IMPLEMENTED;}};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?