layout/build/nsLayoutModule.cpp 多个模块集合调用?注册组件???
c++使用/注册组件的流程:
#define NS_GEOLOCATION_CID \
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(Geolocation, Init)//????初始化?
#define NS_GEOLOCATION_SERVICE_CID \
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsGeolocationService, nsGeolocationService::GetGeolocationService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsContentSecurityManager)
NS_DEFINE_NAMED_CID(NS_your_CID);
文章来源: ffos:xpcom c++