diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:25:10 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:25:10 -0500 |
commit | 8b8c65072aedef94610748ce92c2ed3a19fd5517 (patch) | |
tree | 8614d386acf5db7a77b08d19a5854a7d75dab015 /b2g/components/SystemMessageInternal.js | |
parent | 8c3a46bd13a0660a3ff1e0379dbf515873a852d2 (diff) | |
download | UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar.gz UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar.lz UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.tar.xz UXP-8b8c65072aedef94610748ce92c2ed3a19fd5517.zip |
Purge b2g/
Diffstat (limited to 'b2g/components/SystemMessageInternal.js')
-rw-r--r-- | b2g/components/SystemMessageInternal.js | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/b2g/components/SystemMessageInternal.js b/b2g/components/SystemMessageInternal.js deleted file mode 100644 index 287496a50..000000000 --- a/b2g/components/SystemMessageInternal.js +++ /dev/null @@ -1,64 +0,0 @@ -/* 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 Cc = Components.classes; -const Ci = Components.interfaces; -const Cu = Components.utils; -const Cr = Components.results; - -Cu.import("resource://gre/modules/XPCOMUtils.jsm"); -Cu.import("resource://gre/modules/Services.jsm"); -Cu.import("resource://gre/modules/SystemAppProxy.jsm"); - -function debug(aMsg) { - dump("-- SystemMessageInternal " + Date.now() + " : " + aMsg + "\n"); -} - -// Implementation of the component used by internal users. - -function SystemMessageInternal() { -} - -SystemMessageInternal.prototype = { - - sendMessage: function(aType, aMessage, aPageURI, aManifestURI, aExtra) { - debug(`sendMessage ${aType} ${aMessage} ${aPageURI} ${aExtra}`); - SystemAppProxy._sendCustomEvent("mozSystemMessage", { - action: "send", - type: aType, - message: aMessage, - pageURI: aPageURI, - extra: aExtra - }); - return Promise.resolve(); - }, - - broadcastMessage: function(aType, aMessage, aExtra) { - debug(`broadcastMessage ${aType} ${aMessage} ${aExtra}`); - SystemAppProxy._sendCustomEvent("mozSystemMessage", { - action: "broadcast", - type: aType, - message: aMessage, - extra: aExtra - }); - return Promise.resolve(); - }, - - registerPage: function(aType, aPageURI, aManifestURI) { - SystemAppProxy._sendCustomEvent("mozSystemMessage", { - action: "register", - type: aType, - pageURI: aPageURI - }); - debug(`registerPage ${aType} ${aPageURI} ${aManifestURI}`); - }, - - classID: Components.ID("{70589ca5-91ac-4b9e-b839-d6a88167d714}"), - - QueryInterface: XPCOMUtils.generateQI([Ci.nsISystemMessagesInternal]) -} - -this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SystemMessageInternal]); |