mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1821927 - Convert toolkit/components/tooltiptext to ES modules. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172515
This commit is contained in:
parent
156df8f509
commit
4352e1cc2c
@ -2,7 +2,7 @@
|
||||
* 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/. */
|
||||
|
||||
function TooltipTextProvider() {}
|
||||
export function TooltipTextProvider() {}
|
||||
|
||||
TooltipTextProvider.prototype = {
|
||||
getNodeText(tipElement, textOut, directionOut) {
|
||||
@ -170,5 +170,3 @@ TooltipTextProvider.prototype = {
|
||||
classID: Components.ID("{f376627f-0bbc-47b8-887e-fc92574cc91f}"),
|
||||
QueryInterface: ChromeUtils.generateQI(["nsITooltipTextProvider"]),
|
||||
};
|
||||
|
||||
var EXPORTED_SYMBOLS = ["TooltipTextProvider"];
|
@ -8,7 +8,7 @@ Classes = [
|
||||
{
|
||||
'cid': '{f376627f-0bbc-47b8-887e-fc92574cc91f}',
|
||||
'contract_ids': ['@mozilla.org/embedcomp/default-tooltiptextprovider;1'],
|
||||
'jsm': 'resource://gre/modules/TooltipTextProvider.jsm',
|
||||
'esModule': 'resource://gre/modules/TooltipTextProvider.sys.mjs',
|
||||
'constructor': 'TooltipTextProvider',
|
||||
},
|
||||
]
|
||||
|
@ -7,7 +7,7 @@
|
||||
BROWSER_CHROME_MANIFESTS += ["tests/browser.ini"]
|
||||
|
||||
EXTRA_JS_MODULES += [
|
||||
"TooltipTextProvider.jsm",
|
||||
"TooltipTextProvider.sys.mjs",
|
||||
]
|
||||
|
||||
XPCOM_MANIFESTS += [
|
||||
|
Loading…
Reference in New Issue
Block a user