2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2005-04-06 02:27:03 +04:00
|
|
|
|
2010-06-10 22:11:40 +04:00
|
|
|
#include "mozilla/ModuleUtils.h"
|
2005-04-06 02:27:03 +04:00
|
|
|
|
2019-01-25 02:32:56 +03:00
|
|
|
#if defined(MOZ_XUL) && defined(NS_PRINTING)
|
2005-09-16 06:25:37 +04:00
|
|
|
# include "nsPrintingPromptService.h"
|
2015-03-05 21:12:41 +03:00
|
|
|
# include "nsPrintingProxy.h"
|
2005-04-06 02:27:38 +04:00
|
|
|
|
2018-01-16 14:47:19 +03:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsPrintingPromptService,
|
|
|
|
nsPrintingPromptService::GetSingleton)
|
2019-01-25 02:32:56 +03:00
|
|
|
# ifdef PROXY_PRINTING
|
2015-03-05 21:12:41 +03:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsPrintingProxy,
|
|
|
|
nsPrintingProxy::GetInstance)
|
2005-04-06 02:27:38 +04:00
|
|
|
# endif
|
2005-04-06 02:27:40 +04:00
|
|
|
|
2010-06-10 22:11:40 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_PRINTINGPROMPTSERVICE_CID);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static const mozilla::Module::CIDEntry kEmbeddingCIDs[] = {
|
2019-01-25 02:32:56 +03:00
|
|
|
#if defined(MOZ_XUL) && defined(NS_PRINTING)
|
|
|
|
# ifdef PROXY_PRINTING
|
2014-10-28 18:59:08 +03:00
|
|
|
{&kNS_PRINTINGPROMPTSERVICE_CID, false, nullptr,
|
|
|
|
nsPrintingPromptServiceConstructor, mozilla::Module::MAIN_PROCESS_ONLY},
|
2015-03-05 21:12:41 +03:00
|
|
|
{&kNS_PRINTINGPROMPTSERVICE_CID, false, nullptr, nsPrintingProxyConstructor,
|
2014-10-28 18:59:08 +03:00
|
|
|
mozilla::Module::CONTENT_PROCESS_ONLY},
|
2019-01-25 02:32:56 +03:00
|
|
|
# else
|
2013-04-03 04:27:12 +04:00
|
|
|
{&kNS_PRINTINGPROMPTSERVICE_CID, false, nullptr,
|
|
|
|
nsPrintingPromptServiceConstructor},
|
2014-10-28 18:59:08 +03:00
|
|
|
# endif
|
2010-06-10 22:11:40 +04:00
|
|
|
#endif
|
2013-04-03 04:27:12 +04:00
|
|
|
{nullptr}};
|
2005-04-06 02:27:03 +04:00
|
|
|
|
2010-06-10 22:11:40 +04:00
|
|
|
static const mozilla::Module::ContractIDEntry kEmbeddingContracts[] = {
|
2019-01-25 02:32:56 +03:00
|
|
|
#if defined(MOZ_XUL) && defined(NS_PRINTING)
|
2010-06-10 22:11:40 +04:00
|
|
|
{NS_PRINTINGPROMPTSERVICE_CONTRACTID, &kNS_PRINTINGPROMPTSERVICE_CID},
|
2005-04-06 02:27:38 +04:00
|
|
|
#endif
|
2013-04-03 04:27:12 +04:00
|
|
|
{nullptr}};
|
2010-06-10 22:11:40 +04:00
|
|
|
|
2019-04-05 05:30:56 +03:00
|
|
|
extern const mozilla::Module kEmbeddingModule = {
|
2010-06-10 22:11:40 +04:00
|
|
|
mozilla::Module::kVersion, kEmbeddingCIDs, kEmbeddingContracts};
|