xulappinfo.js

来自「proe5.0野火版下载(中文版免费下载)」· JavaScript 代码 · 共 88 行

JS
88
字号
const XULAPPINFO_CONTRACTID = "@mozilla.org/xre/app-info;1";const XULAPPINFO_CID = Components.ID("{f8b59582-5808-4e6e-a467-339e9c82756f}");const nsIXULAppInfo = Components.interfaces.nsIXULAppInfo;const nsIComponentRegistrar = Components.interfaces.nsIComponentRegistrar;const nsIFactory = Components.interfaces.nsIFactory;function XULAppInfoService(){}XULAppInfoService.prototype.vendor = "mozilla.org";XULAppInfoService.prototype.ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}";XULAppInfoService.prototype.name = "SeaMonkey";XULAppInfoService.prototype.version = "1.1.14";XULAppInfoService.prototype.appBuildID = "0000000000";XULAppInfoService.prototype.platformVersion = "1.8.1.19";XULAppInfoService.prototype.platformBuildID = "0000000000";//@line 18 "/c/seamonkey/obj/suite/components/xulappinfo/../../../../src/suite/components/xulappinfo/xulappinfo.js"XULAppInfoService.prototype.QueryInterface =function appinfo_QueryInterface(iid){    if (!iid.equals(nsIXULAppInfo) &&        !iid.equals(nsISupports))    {        throw Components.results.NS_ERROR_NO_INTERFACE;    }    return this;}var XULAppInfoFactory = new Object();XULAppInfoFactory.createInstance =function(outer, iid){    if (outer != null)        throw Components.results.NS_ERROR_NO_AGGREGATION;    if (!iid.equals(nsIXULAppInfo) && !iid.equals(nsISupports))        throw Components.results.NS_ERROR_INVALID_ARG;    return new XULAppInfoService();}var XULAppInfoModule = new Object();XULAppInfoModule.registerSelf =function mod_registerSelf(compMgr, fileSpec, location, type){    compMgr = compMgr.QueryInterface(nsIComponentRegistrar);    compMgr.registerFactoryLocation(XULAPPINFO_CID,                                    "XUL AppInfo service",                                    XULAPPINFO_CONTRACTID,                                    fileSpec, location, type);}XULAppInfoModule.unregisterSelf =function mod_unregisterSelf(compMgr, fileSpec, location){}XULAppInfoModule.getClassObject =function mod_getClassObject(compMgr, cid, iid){    if (cid.equals(XULAPPINFO_CID))        return XULAppInfoFactory;    if (!iid.equals(nsIFactory))        throw Components.results.NS_ERROR_NOT_IMPLEMENTED;    throw Components.results.NS_ERROR_NO_INTERFACE;}XULAppInfoModule.canUnload =function mod_canUnload(compMgr){    return true;}/* entrypoint */function NSGetModule(compMgr, fileSpec){    return XULAppInfoModule;}

⌨️ 快捷键说明

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