forked from mirrors/gecko-dev
This patch also includes the addition of the Module Registry, which has been done by Julian Descottes <jdescottes@mozilla.com>. Differential Revision: https://phabricator.services.mozilla.com/D122018
27 lines
598 B
JavaScript
27 lines
598 B
JavaScript
/* 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/. */
|
|
|
|
"use strict";
|
|
|
|
const EXPORTED_SYMBOLS = ["event"];
|
|
|
|
const { Module } = ChromeUtils.import(
|
|
"chrome://remote/content/shared/messagehandler/Module.jsm"
|
|
);
|
|
|
|
class Event extends Module {
|
|
destroy() {}
|
|
|
|
/**
|
|
* Commands
|
|
*/
|
|
|
|
testEmitRootEvent() {
|
|
this.messageHandler.emitMessageHandlerEvent("event.testRootEvent", {
|
|
text: "event from root",
|
|
});
|
|
}
|
|
}
|
|
|
|
const event = Event;
|