Bug 1524688: Part 56 - Convert contentAreaDropsListener to static registration. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D18466

--HG--
rename : dom/base/contentAreaDropListener.js => dom/base/ContentAreaDropListener.jsm
extra : source : 230d2feaf941443d88f9f5f65048c53d70e59b86
This commit is contained in:
Kris Maglione 2019-01-30 11:37:53 -08:00
Родитель 66da04bfe0
Коммит 22b7edd20c
6 изменённых файлов: 20 добавлений и 11 удалений

Просмотреть файл

@ -194,8 +194,6 @@
@RESPATH@/components/ProcessSingleton.manifest
@RESPATH@/components/nsContentDispatchChooser.manifest
@RESPATH@/components/nsContentDispatchChooser.js
@RESPATH@/components/contentAreaDropListener.manifest
@RESPATH@/components/contentAreaDropListener.js
@RESPATH@/components/HandlerService.manifest
@RESPATH@/components/HandlerService.js
#ifdef XP_MACOSX

Просмотреть файл

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
const {OS} = ChromeUtils.import("resource://gre/modules/osfile.jsm");
// This component is used for handling dragover and drop of urls.
@ -315,5 +314,4 @@ ContentAreaDropListener.prototype =
}
};
var components = [ContentAreaDropListener];
this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
var EXPORTED_SYMBOLS = ["ContentAreaDropListener"];

14
dom/base/components.conf Normal file
Просмотреть файл

@ -0,0 +1,14 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
Classes = [
{
'cid': '{1f34bc80-1bc7-11d6-a384-d705dd0746fc}',
'contract_ids': ['@mozilla.org/content/dropped-link-handler;1'],
'jsm': 'resource://gre/modules/ContentAreaDropListener.jsm',
'constructor': 'ContentAreaDropListener',
},
]

Просмотреть файл

@ -1,2 +0,0 @@
component {1f34bc80-1bc7-11d6-a384-d705dd0746fc} contentAreaDropListener.js
contract @mozilla.org/content/dropped-link-handler;1 {1f34bc80-1bc7-11d6-a384-d705dd0746fc}

Просмотреть файл

@ -453,8 +453,6 @@ if CONFIG['INTEL_ARCHITECTURE']:
SOURCES['nsTextFragmentSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
EXTRA_COMPONENTS += [
'contentAreaDropListener.js',
'contentAreaDropListener.manifest',
'ProcessSelector.js',
'ProcessSelector.manifest',
'SlowScriptDebug.js',
@ -462,10 +460,15 @@ EXTRA_COMPONENTS += [
]
EXTRA_JS_MODULES += [
'ContentAreaDropListener.jsm',
'DOMRequestHelper.jsm',
'IndexedDBHelper.jsm',
]
XPCOM_MANIFESTS += [
'components.conf',
]
LOCAL_INCLUDES += [
'../battery',
'../events',

Просмотреть файл

@ -129,8 +129,6 @@
@BINPATH@/components/ProcessSingleton.manifest
@BINPATH@/components/HandlerService.manifest
@BINPATH@/components/HandlerService.js
@BINPATH@/components/contentAreaDropListener.manifest
@BINPATH@/components/contentAreaDropListener.js
@BINPATH@/components/servicesComponents.manifest
@BINPATH@/components/servicesSettings.manifest