michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nscore.h" michael@0: #include "nsLayoutDebugCIID.h" michael@0: #include "mozilla/ModuleUtils.h" michael@0: #include "nsIFactory.h" michael@0: #include "nsISupports.h" michael@0: #include "nsRegressionTester.h" michael@0: #include "nsLayoutDebuggingTools.h" michael@0: #include "nsLayoutDebugCLH.h" michael@0: #include "nsIServiceManager.h" michael@0: michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsRegressionTester) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsLayoutDebuggingTools) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsLayoutDebugCLH) michael@0: michael@0: NS_DEFINE_NAMED_CID(NS_REGRESSION_TESTER_CID); michael@0: NS_DEFINE_NAMED_CID(NS_LAYOUT_DEBUGGINGTOOLS_CID); michael@0: NS_DEFINE_NAMED_CID(NS_LAYOUTDEBUGCLH_CID); michael@0: michael@0: static const mozilla::Module::CIDEntry kLayoutDebugCIDs[] = { michael@0: { &kNS_REGRESSION_TESTER_CID, false, nullptr, nsRegressionTesterConstructor }, michael@0: { &kNS_LAYOUT_DEBUGGINGTOOLS_CID, false, nullptr, nsLayoutDebuggingToolsConstructor }, michael@0: { &kNS_LAYOUTDEBUGCLH_CID, false, nullptr, nsLayoutDebugCLHConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kLayoutDebugContracts[] = { michael@0: { "@mozilla.org/layout-debug/regressiontester;1", &kNS_REGRESSION_TESTER_CID }, michael@0: { NS_LAYOUT_DEBUGGINGTOOLS_CONTRACTID, &kNS_LAYOUT_DEBUGGINGTOOLS_CID }, michael@0: { "@mozilla.org/commandlinehandler/general-startup;1?type=layoutdebug", &kNS_LAYOUTDEBUGCLH_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::CategoryEntry kLayoutDebugCategories[] = { michael@0: { "command-line-handler", "m-layoutdebug", "@mozilla.org/commandlinehandler/general-startup;1?type=layoutdebug" }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kLayoutDebugModule = { michael@0: mozilla::Module::kVersion, michael@0: kLayoutDebugCIDs, michael@0: kLayoutDebugContracts, michael@0: kLayoutDebugCategories michael@0: }; michael@0: michael@0: NSMODULE_DEFN(nsLayoutDebugModule) = &kLayoutDebugModule;