mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
a2174af992
- Bug 1143038 - Use AppConstants in tabbrowser.xml (r=gavin) (7974d0be4) - Bug 1087726: Make JS callers of ios.newChannel call ios.newChannel2 in browser/ (r=gijs) (995267699) - Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc (34aebc313) - Bug 1149215 - Remove nsLayoutUtils::GetWholeImageDestination that use unitless nsIntSize. r=dholbert (dba5c0392) - Bug 1149222 part 1 - Make nsLayoutUtils::DrawBackgroundImage and SVGImageContext use CSSIntSize instead of unitless nsIntSize. r=dholbert (32052dcf6) - Bug 1149222 part 2 - Make nsSVGImageFrame::PaintSVG use LayoutDeviceSize & LayoutDevicePixel::ToAppUnits, when setting up its dest-rect. r=mats (d7505c2ab) - Bug 1102048 (Part 15, VectorImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (c38d91d61) - do not uselessly run the preprocessor (280c69776) - Bug 1130816 - Bad argument passed to newChannelFromURI2 in WindowsPreviewPerTab.jsm (r=gijs) (70cd2eec7) - AppConstants.jsm changes - Bug 1149334 - Remove preprocessing of nsUpdateService.js and use AppConstants.jsm. r=gavin.sharp (ab53e3bc2) - Bug 1153657 - Performance Monitoring is not ready to ride the trains. r=yoric (582aef2de) - Bug 1140672 - Remove app update file migration code for Windows. r=spohl (c7d6a39ab) - Bug 1137901 - Remove param from refreshUpdateStatus. r=spohl (4d6bfc4e0) - Remove FHR from app update Bug 1121018 - FHR data migration: org.mozilla.update. r=spohl (70db64336) - lost bits of 1. main patch - Bug 843497 - Update check says 'up to date' for out (0975d2954) - 1. File renames for Bug 1136358 - Preprocessing and file includes make it difficult to debug app update tests. r=spohl (c94361eee) - 2. Build changes for Bug 1136358 - Preprocessing and file includes make it difficult to debug app update tests. r=spohl, r=gps (d4f2581a1) - 3. Main patch for Bug 1136358 - Preprocessing and file includes make it difficult to debug app update tests. r=spohl (f4f7e68c6) - 4. Use XPCOMUtils for Bug 1136358 - Preprocessing and file includes make it difficult to debug app update tests. r=spohl (0f4a9df9e) - Bug 1137447 - New app update telemetry for patch type (complete or partial), extended error codes, and general cleanup. r=bbondy (12fb03ead) - Bug 1149590 - Update/Upgrade for application dowloaded and installed, setting to ask/prompt for action ignored. r=spohl (2be30a384) - changes for nsUpdateService.js - Bug 1149334 - Remove preprocessing of nsUpdateService.js and use AppConstants.jsm. r=spohl (e404305ee) - Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop (3e39e1160) - Bug 1150688 - Update sections of GMPInstallManager.jsm, which were copied from nsUpdateService.js, to reflect the changes to nsUpdateService.js from bug 1149334. r=spohl (3fa552f68) - Followup patch to Bug 1139958 forgot to add a comment to AppConstants.jsm r=mossop (be2408473)
185 lines
6.7 KiB
C++
185 lines
6.7 KiB
C++
/* 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/. */
|
|
|
|
#include "mozilla/ModuleUtils.h"
|
|
#include "nsAppStartup.h"
|
|
#include "nsUserInfo.h"
|
|
#include "nsToolkitCompsCID.h"
|
|
#include "nsFindService.h"
|
|
#if defined(USE_MOZ_UPDATER)
|
|
#include "nsUpdateDriver.h"
|
|
#endif
|
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
#include "nsParentalControlsService.h"
|
|
#endif
|
|
|
|
#include "nsAlertsService.h"
|
|
|
|
#include "nsDownloadManager.h"
|
|
#include "DownloadPlatform.h"
|
|
#include "nsDownloadProxy.h"
|
|
#include "rdf.h"
|
|
|
|
#include "nsTypeAheadFind.h"
|
|
|
|
#include "nsBrowserStatusFilter.h"
|
|
#include "mozilla/FinalizationWitnessService.h"
|
|
#include "mozilla/NativeOSFileInternals.h"
|
|
#include "mozilla/AddonPathService.h"
|
|
|
|
#if defined(XP_WIN)
|
|
#include "NativeFileWatcherWin.h"
|
|
#else
|
|
#include "NativeFileWatcherNotSupported.h"
|
|
#endif // (XP_WIN)
|
|
|
|
#if !defined(MOZ_WIDGET_GONK) && !defined(MOZ_WIDGET_ANDROID)
|
|
#define MOZ_HAS_TERMINATOR
|
|
#endif
|
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
|
#include "nsTerminator.h"
|
|
#endif
|
|
|
|
#if defined(NIGHTLY_BUILD)
|
|
#define MOZ_HAS_PERFSTATS
|
|
#endif // defined(NIGHTLY_BUILD)
|
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
|
#include "nsPerformanceStats.h"
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
|
|
|
using namespace mozilla;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsAppStartup, Init)
|
|
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPerformanceStatsService)
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTerminator)
|
|
#endif
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserInfo)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsFindService)
|
|
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsParentalControlsService)
|
|
#endif
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAlertsService)
|
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsDownloadManager,
|
|
nsDownloadManager::GetSingleton)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(DownloadPlatform)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDownloadProxy)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTypeAheadFind)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBrowserStatusFilter)
|
|
#if defined(USE_MOZ_UPDATER)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUpdateProcessor)
|
|
#endif
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(FinalizationWitnessService)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(NativeOSFileInternalsService)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(NativeFileWatcherService, Init)
|
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(AddonPathService, AddonPathService::GetInstance)
|
|
|
|
NS_DEFINE_NAMED_CID(NS_TOOLKIT_APPSTARTUP_CID);
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
|
NS_DEFINE_NAMED_CID(NS_TOOLKIT_PERFORMANCESTATSSERVICE_CID);
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
|
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
|
NS_DEFINE_NAMED_CID(NS_TOOLKIT_TERMINATOR_CID);
|
|
#endif
|
|
NS_DEFINE_NAMED_CID(NS_USERINFO_CID);
|
|
NS_DEFINE_NAMED_CID(NS_ALERTSSERVICE_CID);
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
NS_DEFINE_NAMED_CID(NS_PARENTALCONTROLSSERVICE_CID);
|
|
#endif
|
|
NS_DEFINE_NAMED_CID(NS_DOWNLOADMANAGER_CID);
|
|
NS_DEFINE_NAMED_CID(NS_DOWNLOADPLATFORM_CID);
|
|
NS_DEFINE_NAMED_CID(NS_DOWNLOAD_CID);
|
|
NS_DEFINE_NAMED_CID(NS_FIND_SERVICE_CID);
|
|
NS_DEFINE_NAMED_CID(NS_TYPEAHEADFIND_CID);
|
|
NS_DEFINE_NAMED_CID(NS_BROWSERSTATUSFILTER_CID);
|
|
#if defined(USE_MOZ_UPDATER)
|
|
NS_DEFINE_NAMED_CID(NS_UPDATEPROCESSOR_CID);
|
|
#endif
|
|
NS_DEFINE_NAMED_CID(FINALIZATIONWITNESSSERVICE_CID);
|
|
NS_DEFINE_NAMED_CID(NATIVE_OSFILE_INTERNALS_SERVICE_CID);
|
|
NS_DEFINE_NAMED_CID(NS_ADDON_PATH_SERVICE_CID);
|
|
NS_DEFINE_NAMED_CID(NATIVE_FILEWATCHER_SERVICE_CID);
|
|
|
|
static const Module::CIDEntry kToolkitCIDs[] = {
|
|
{ &kNS_TOOLKIT_APPSTARTUP_CID, false, nullptr, nsAppStartupConstructor },
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
|
{ &kNS_TOOLKIT_TERMINATOR_CID, false, nullptr, nsTerminatorConstructor },
|
|
#endif
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
|
{ &kNS_TOOLKIT_PERFORMANCESTATSSERVICE_CID, false, nullptr, nsPerformanceStatsServiceConstructor },
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
|
{ &kNS_USERINFO_CID, false, nullptr, nsUserInfoConstructor },
|
|
{ &kNS_ALERTSSERVICE_CID, false, nullptr, nsAlertsServiceConstructor },
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
{ &kNS_PARENTALCONTROLSSERVICE_CID, false, nullptr, nsParentalControlsServiceConstructor },
|
|
#endif
|
|
{ &kNS_DOWNLOADMANAGER_CID, false, nullptr, nsDownloadManagerConstructor },
|
|
{ &kNS_DOWNLOADPLATFORM_CID, false, nullptr, DownloadPlatformConstructor },
|
|
{ &kNS_DOWNLOAD_CID, false, nullptr, nsDownloadProxyConstructor },
|
|
{ &kNS_FIND_SERVICE_CID, false, nullptr, nsFindServiceConstructor },
|
|
{ &kNS_TYPEAHEADFIND_CID, false, nullptr, nsTypeAheadFindConstructor },
|
|
{ &kNS_BROWSERSTATUSFILTER_CID, false, nullptr, nsBrowserStatusFilterConstructor },
|
|
#if defined(USE_MOZ_UPDATER)
|
|
{ &kNS_UPDATEPROCESSOR_CID, false, nullptr, nsUpdateProcessorConstructor },
|
|
#endif
|
|
{ &kFINALIZATIONWITNESSSERVICE_CID, false, nullptr, FinalizationWitnessServiceConstructor },
|
|
{ &kNATIVE_OSFILE_INTERNALS_SERVICE_CID, false, nullptr, NativeOSFileInternalsServiceConstructor },
|
|
{ &kNS_ADDON_PATH_SERVICE_CID, false, nullptr, AddonPathServiceConstructor },
|
|
{ &kNATIVE_FILEWATCHER_SERVICE_CID, false, nullptr, NativeFileWatcherServiceConstructor },
|
|
{ nullptr }
|
|
};
|
|
|
|
static const Module::ContractIDEntry kToolkitContracts[] = {
|
|
{ NS_APPSTARTUP_CONTRACTID, &kNS_TOOLKIT_APPSTARTUP_CID },
|
|
#if defined(MOZ_HAS_TERMINATOR)
|
|
{ NS_TOOLKIT_TERMINATOR_CONTRACTID, &kNS_TOOLKIT_TERMINATOR_CID },
|
|
#endif
|
|
#if defined(MOZ_HAS_PERFSTATS)
|
|
{ NS_TOOLKIT_PERFORMANCESTATSSERVICE_CONTRACTID, &kNS_TOOLKIT_PERFORMANCESTATSSERVICE_CID },
|
|
#endif // defined (MOZ_HAS_PERFSTATS)
|
|
{ NS_USERINFO_CONTRACTID, &kNS_USERINFO_CID },
|
|
{ NS_ALERTSERVICE_CONTRACTID, &kNS_ALERTSSERVICE_CID },
|
|
#if !defined(MOZ_DISABLE_PARENTAL_CONTROLS)
|
|
{ NS_PARENTALCONTROLSSERVICE_CONTRACTID, &kNS_PARENTALCONTROLSSERVICE_CID },
|
|
#endif
|
|
{ NS_DOWNLOADMANAGER_CONTRACTID, &kNS_DOWNLOADMANAGER_CID },
|
|
{ NS_DOWNLOADPLATFORM_CONTRACTID, &kNS_DOWNLOADPLATFORM_CID },
|
|
{ NS_FIND_SERVICE_CONTRACTID, &kNS_FIND_SERVICE_CID },
|
|
{ NS_TYPEAHEADFIND_CONTRACTID, &kNS_TYPEAHEADFIND_CID },
|
|
{ NS_BROWSERSTATUSFILTER_CONTRACTID, &kNS_BROWSERSTATUSFILTER_CID },
|
|
#if defined(USE_MOZ_UPDATER)
|
|
{ NS_UPDATEPROCESSOR_CONTRACTID, &kNS_UPDATEPROCESSOR_CID },
|
|
#endif
|
|
{ FINALIZATIONWITNESSSERVICE_CONTRACTID, &kFINALIZATIONWITNESSSERVICE_CID },
|
|
{ NATIVE_OSFILE_INTERNALS_SERVICE_CONTRACTID, &kNATIVE_OSFILE_INTERNALS_SERVICE_CID },
|
|
{ NS_ADDONPATHSERVICE_CONTRACTID, &kNS_ADDON_PATH_SERVICE_CID },
|
|
{ NATIVE_FILEWATCHER_SERVICE_CONTRACTID, &kNATIVE_FILEWATCHER_SERVICE_CID },
|
|
{ nullptr }
|
|
};
|
|
|
|
static const Module kToolkitModule = {
|
|
Module::kVersion,
|
|
kToolkitCIDs,
|
|
kToolkitContracts
|
|
};
|
|
|
|
NSMODULE_DEFN(nsToolkitCompsModule) = &kToolkitModule;
|